Beruflich Dokumente
Kultur Dokumente
Project Identification
and Selection
Project Initiation
and Planning
Analysis
Logical Design
Physical Design
Database activity
physical database design
Implementation
Maintenance
Chapter 6
Prentice Hall,
Prentice Hall,
Chapter 6
Prentice Hall,
fixed-length character
VARCHAR2 variable-length character
(memo)
LONG large number
NUMBER positive/negative number
DATE actual date
BLOB binary large object (good for
graphics, sound clips, etc.)
Chapter 6
Prentice Hall,
Figure 6.2
Example code-look-up table (Pine Valley Furniture Company)
Chapter 6
Prentice Hall,
Physical Records
Physical
Prentice Hall,
Denormalization
Chapter 6
Prentice Hall,
ORD_DTE
CUS_NBR
SUB_TOT
FRT_AMT
TAX
TOT_AMT
CUS
CUS_NBR
CUS_NME
STR_ADR
ZIP_ADR
ZIP
ZIP
CITY
STATE
ORD_ITM
ORD_NBR
ITM_NBR
ORD_QTY
AMOUNT
ITM
ITM_NBR
Chapter 6
ITM_DSC
ORD_ITM_PRICE
Prentice Hall,
Derivable
Fields
Denormalization
(CUS table is in 2NF )
ORD
ORD_NBR
ORD_DTE
CUS_NBR
SUB_TOT
FRT_AMT
TAX
TOT_AMT
CUS
CUS_NBR
CUS_NME
STR_ADR
CTY_ADR
STT_ADR
ORD_ITM
ORD_NBR
ITM_NBR
ORD_QTY
AMOUNT
ITM
ITM_NBR
Chapter 6
ITM_DSC
ORD_ITM_PRICE
Prentice Hall,
ZIP_ADR
Fig 6.5
A possible
denormalization
situation:
reference data
Extra table
access
required
Data duplication
Chapter 6
Prentice Hall,
10
Partitioning
rows
Three types: Key Range Partitioning, Hash Partitioning, or
Composite Partitioning
columns
The primary key must be repeated in each file
Prentice Hall,
11
Partitioning
Advantages
of Partitioning:
Disadvantages
of Partitioning:
Prentice Hall,
12
Data Replication
Purposely
Prentice Hall,
13
File:
Constructs
Sequential storage.
Pointers.
File
Organization:
Access
Method:
Chapter 6
Prentice Hall,
14
Records of the
file are stored
in sequence by
the primary key
field values.
1
2
If sorted
every insert or
delete requires
resort
If not sorted
Average time to find
desired record = n/2.
n
Chapter 6
Prentice Hall,
15
Chapter 6
Prentice Hall,
16
Chapter 6
Prentice Hall,
17
Fig 6-7c
Hashed file or
index
organization
Hash algorithm
Usually uses divisionremainder to determine
record position. Records
with same position are
grouped in lists.
Chapter 6
Prentice Hall,
18
Fig 6-8
Bitmap index
index
organization
Chapter 6
Prentice Hall,
19
Clustering Files
In
Prentice Hall,
20
Prentice Hall,
21
Chapter 6
Prentice Hall,
22