Professional Documents
Culture Documents
Intro
Intro
Introduction
Strategy
and
Analysis
Design
Build
and
Document
Transition
Production
Database
•• Dr.
Dr. E. E. F.
F. Codd
Codd proposed
proposed the
the relational
relational model
model fo
fo
rr database
database systems
systems inin 1970.
1970.
•• ItIt is
is the
the basis
basis for
for the
the relational
relational database
database manag
manag
ement
ement system
system (RDBMS).
(RDBMS).
•• The
The relational
relational model
model consists
consists ofof the
the following:
following:
–– Collection
Collection of
of objects
objects or
or relations
relations
–– Set
Set of
of operators
operators to
to act
act on
on the
the relations
relations
–– Data
Data integrity
integrity for
for accuracy
accuracy and
and consistency
consistency
Model of
system
in client’s Entity model of
mind client’s model
Table model
of entity model
Server
Tables on disk
EMPLOYEE
EMPLOYEE assigned DEPARTMENT
DEPARTMENT
assigned to
to
#*
#* number
number #*
#* number
number
** name
name ** name
name
composed of
composed of
oo job
job title
title oo location
location
•• Scenario
Scenario
–– “.
“. .. .. Assign
Assign one
one oror more
more employees
employees toto aa depart
depart
ment
ment .. .. .”
.”
–– “.
“. .. .. Some
Some departments
departments do do not
not yet
yet have
have assign
assign
ed
ed employees
employees .. .. .”
.”
I-9 Copyright Oracle Corporation, 1998. All rights reserved.
Entity Relationship
Modeling Conventions
Entity Attribute
Soft box Singular name
Singular, unique name Lowercase
Uppercase Mandatory marked with “*”
Synonym in parentheses Optional marked with “o”
EMPLOYEE
EMPLOYEE assigned
assigned to
to DEPARTMENT
DEPARTMENT
#*
#* number
number #*
#* number
number
** name
name * name
composed of *
composed of name
oo job
job title
title oo location
location
A
A relational
relational database
database
•• Can
Can be
be accessed
accessed and
and modified
modified by
by execu
execu
ting
ting structured
structured query
query language
language (SQL)
(SQL) st
st
atements
atements
•• Contains
Contains aa collection
collection of
of tables
tables with
with no
no p
p
hysical
hysical pointers
pointers
•• Uses
Uses aa set
set of
of operators
operators
Database
Data is displayed
LOC
LOC
-------------
-------------
NEW
NEW YORK
YORK
DALLAS
DALLAS
CHICAGO
CHICAGO
BOSTON
BOSTON
Server
I am a clock. I know
my time zone, and I
can display time.
Buy
Sell
Customers Business
SQL
SQL PL/SQL
PL/SQL SQL*
SQL* Plus
Plus
INSERT
UPDATE Data manipulation language (DML)
DELETE
CREATE
ALTER
DROP Data definition language (DDL)
RENAME
TRUNCATE
COMMIT
ROLLBACK Transaction control
SAVEPOINT
•• PL/SQL
PL/SQL is is an
an extension
extension toto SQL
SQL with
with desi
desi
gn
gn features
features ofof programming
programming languages.
languages.
•• Data
Data manipulation
manipulation andand query
query statements
statements
of
of SQL
SQL are
are included
included within
within procedural
procedural u
u
nits
nits of
of code.
code.
Oracle Server