10. Entity
Salesperson
Package
Order
Data Item
Saleperson number
Saleperson name
Company name
Address
Sales
Width
Height
Length
Weight
Mailing Address
Return Address
Product(s)
Desription
Quatity ordered
Last name of person
who placed the
order
First initial
Street Address
City
Status
Zip code
Credit card number
Date order was placed
Amount
Status
162
Value
87254
Smiih
Music Land
45/7 Adram Road.
$ 20,567
2
16
16
3
765 Dutch Drive
P.O. Box 341 Spring Valley
8521
“My Fair Lady” compact disc
I
Kley
R.
765 Dutch Drive
Taxas
CA
93407
65-8798-87
05/01/87
$6.99
Backordered
CT 479
-..
12. ORDER RECORD = (CIRDE_R#,LASTNAME,INITIAL,STREET-ADDRESS,
CITY,STATE,CREDIT-CARDRECORD )
Meta Data : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FWJi40
Data Item
Salesperson number
Salesperson name
Company name
Address
Sales
Wrdth
Height .
Length
Weight
Mailing address
Return Address
Product(s)
Description(s)
Quantity oraered
Last name of person
who olaced the
order
First Initial
street d”“reSb
City
State
ZIP code
Credit card number
Date order was placed
Amount
Status
L
/
Value
/
N 5
A 20
C 26 Fields
C 36
N 9.2
N Numeric
A Alphabettc
N 2 C Composrte
N - (either A or N)
N ; D Date MMlDDiW
I :! ---J
C 30
N 2
A 24
-.-I
J
A 1 for fields may be
c 28
A 1 2
A 2
N 9
C IO
D 6
N
c field takes up 7 digits, t
i two of which are
right of the decrmal
,
164 CT 479
13. PHYSICIAN
T R E A T M E N T S
1
INSURANCE
1 C A R R I E R
PRESCRIPTIONS
CT 479 165
19. lo, ,Ol’
User Reports
(Tabular Output, Graphs, etc.1
Conceptual Schema
lioglcai Design Model of the Database1
Internal Schema
(Physkal Dwgn Model of the Database)
CT 479 171
20. r-lENTITY
r il I
’ E’ TITY’ E’ TITY
rr
ENTITYENTITY
-3ENTITYENTITY
ilil
-_I-_I
11
ENTITYENTITY ENTITYENTITY ENTITYENTITY ENTITY ENTITY
172 CT 479
21. ITEM
Guys and Dolls
G 2314 Cd” Circle ilncoln NE 45-4654-76 ShlP!xd 5112
s 34 meam Lane miatloma my OK ‘lb-9876-74 ShlPPed 5114
R 765 Dulclnea owe ia Mancha CA 65-8788-87 :n PrOCeSS
I3521 My Fair Lady 6.99
CT 479
23. ITEM-DESCRIPTION
Guys and Dolls 8.99
My Far Lady 6.99
BB94 j 42nd Street 10.99
8992 1 A Chorus Line 1 10.99 1
I
nlwi 10.18 pwknj~aa¶~~am~e~lfJ aaarnsnalaI~aJw”pdi~~M~l4 ITEM-DESCRIPTION
L
i% ORDER-DETAILS -
CT 479 175
24. ITEM-PRICE
1 ITEM-# 1 TITLE I PRICE I
ITEM-STATUS
ITEM- #
8235
,8235
8235
8521
B E 9 4
8894
8992
176 CT 479
26. Unnormaln!d
relations
Step 1: Remove
repeatIng groups
Normailzed
relations
IlNFI
Step 2: Remove
partial dependences
Second normal
form iZNFl
relations
0
Step 3: Remove
transitive dependencies
Thrd normal
form (3NFl
relations
178 CT 479
27. 7. WAREHOUSE - LOCATION
8. SALES AMOUNT
JAMES Draulic
Equipment Company
Spring Valley Minesota
Saleperson # : 3462
Name : Water
Sale Area : West
CUSTOMER CUSTOMER WAREHOUSE WAREkOUSE SALES
NUMBER NAME NUMBER LOCATION
18765 Delta Services 4 Fargo 13,540
18840 M.Levy and Sons 3 Bismark 10,800
CT 479 179
37. SALESPERSON-CUSTOMER
SALESPERSON CUSTOMER CUSTOMER WAREHOUSE WAREHOUSE S A L E S
N U M B E R N U M B E R NAME N U M B E R L O C A T I O N AMOUNT
-
-ES
-
CUSTOMER-WAREHOUSE
C U S T O M E R C U S T O M E R WAREHOUSE WAREHOUSE
N U M B E R NAME N U M B E R LOCATION
I / , I
18765 Delta Systems I 4 / Fargo 1
18830 j A. Levy and Sons 1 3 / BlSmarck 1
19242 Ramer Company
18841 R. W. Flood Inc.
18899 / Seward Systems 1 2 Superior
19565 Stodola’s Inc. 1 Plymourh
etc.
t 3 4 6 23 4 6 2 19242 18830 I 10600 9700
I 3593 1 8 8 4 1 l-,-i560
I 3593 18899 / 2590 I
I 3593 19565 / 8800 1
I etc. I
CT 479 189
39. CUSTOMER-WARtHOUSE
CUSTOMER CUSTOMER WAREHOUSE WAREHOUSE
N U M B E R N A M E N U M B E R L O C A T I O N
C U S T O M E R WAREHOUSE
C U S T O M E R C U S T O M E R WAREHOUSE WAREHOUSE WAREHOUSE
N U M B E R NAME N U M B E R N U M B E R LOCATION
16765 Delta Systems 4 4 F a r g o
18830 A. Levy and Sons 3 Blsmarck
19242 Ranw Company 3
18841 R. W. Flood Inc 2
18899 Seward Systems / 2
19565 Stodola’s Inc. 1
etc.
s)lWi 10.30 W314nalol~aJw"Pd~~a~ CUSTOMER-WAREHOUSE %~%J~WKI
ath 2 ~aiui=bkdi &I CUSTOMER (1NF) Ilaz WAREHOUSE
(ZNF)
CT 479 191
41. S A L E S P E R S O N
LUMBER 1 NAME / AREA 1
SALESPERSON SALESPERSON SALES
I 3462 waters I West 1
I 3593 I Dryne 1 East I
I etc. I I I
* C U S T O M E R
4lll EC.,-ccy
SALESPERSON CUSTOMER S A L E S
N U M B E R N U M B E R AMOUNT
3462 18765 13540
3462 18830 10600
3462 19242 9700
3593 1 8 8 4 1 11560
3593 18899 2590
3593 19565 8800
-
etc.
C U S T O M E R C U S T O M E R
N U M B E R
WAREHOUSE )
NAME N U M B E R
18765 Delta Systems 4
1 18830 j A. Levy and Sons / 3
19242 Ranier Company I 3 I
1 8 8 4 1 R. W. Flood Inc 2
18699 Seward Systems 2 i
19565 Stodola’s Inc. I 1 I
WAREHOUSE
WAREHOUSE WAREHOUSE
1 N U M B E R ) LOCATION 1
/ 4 I Fargo (
/ 3 / Blsmarck 1
I 2 / Superior I
I 1 I Plymouth
I
etc.
etc. I
1
WAREHOUSE
CT 479 193
44. Choose a relationkl
from the database
Join the relations
together
‘-L- /’ ,‘,’ /’.
/*
: ,
:;
ii Ill
Project columns
from the relation
Select rows
from the relation
Derive new attributes
Index or sort rows
Calculate totals
and performance
measures
Present data
196 CT 479
45. CUSTOMER
18830 A. Levy and Sons 3
19242 Ranier Company 3
18841 R. W. Flood Inc. 2
18899 Seward Systems ’ 2
i 9 5 6 5 Stodola’s Inc. 1
etc. t
WAREHOUSE
WAREHSUSE WAREHOUSE
N U M B E R L O C A T I O N I
4 F a r g o I
1 P l y m o u t h
etc. I IL ,
b--L--l~
‘TJCUSTOMER-WAREHOUSE-LOCATION
CT 479 197
46. S A L E S
SALE;;FEpN CUSTOMER S A L E S
N U M B E R AMOUNT
198
I 3462 I 18785 I 13540 I
3462 18830 10600
3462 19242 9700
QUOTA
3593 18641 11560
3593 18899 2590 AWARD LEVEL AMOUNT
3593 19565 8800 Certificate 9000
etc. M e d a l 12000
I S A L E S
SALESPERSQN CUSTOMER
N U M B E R N U M B E R
A$$;;T AWARD LEVEL- AMOUNT
3462 18765 13540 Certifmte 9000
I 3462 18765 / 13540 / Medal I I12000
3462 18830 10600 1 Certlflcate 9000
3462 18830 10600 M e d a l 12000
I 3462 19242 9700 / Certificate I 9000 I
3593 1 8 6 4 1 11560 Certificate 12000
etc.
.
CT 479
47. CUSTOMER-WAREHOUSE-LOCATION
CUSTOMER CUSTOMER WAREHOUSE WAREHOUSE
NUMBER NAME N U M B E R LOCATION
18765 Delta Systems 4 Farqo
1 18830 ) A. Levy and Sons / 3 1 Bismatck 1
19242 Ranw Company 1 3 1 Bismarck 1
1 8 8 4 1 R. W. Flood Inc.
18899 Seward Systems
19565 Stodola’s Inc.
2 SuperKx
2 Supervx
1 Plymouth
etc.
PROJECTION
CUSTOMER-LOCATION
CUSTOMER WAREHOUSE
NUMBER LOCATION
18765 F a r g o I
.
18841 Superior
I 18899 Superior
I 19565 Plymouth
CT 479
48. PERS’INNEL
NUMBER EMPLOYEE NAME DEPARTMENT S’H GROSS
72845 Waters Outside Sales S 48960
72888 Dryne
73712 Fawcett
Outside Sales S 37200
Distribution H 23500
80345 Well, Jr. Marketing S 65000
84672 Piper Maintenance H 20560
89760 Acqua Accountmg H 18755
etc. 1
liSELECTION
N U M B E R EMPLOYEE NAME DEPARTMENT S/H GROSS
72845 Waters Outside Sales S 48960
72888 Dryne Outside Sales S 37200
80345 Well, Jr. Marketing S 65000
etc.
200 CT 479
51. P E R S O N N E L
SORT
LJ+
N U M B E R EMPLOYEE NAME DEPARTMENT S/H GROSS
65760 Acquia Accounting H 18755 1
72868 Drylle Outside Sales S 37200
73712 Fawcett Distribution H 23500
84672 PIper Maintenance H 20560
72845 Waters Outside Sales S 48960
80345 Well, Jr. Marketing S 65000
CT 479 203
52. SHIPPING-WEIGHT
Some examples:
Total girth and shippit+, w?ngnt
Number of packages that weighed
less than 25 pounds but were
shipped at the 25 pound rate
Total number of packages shipped
Percentage of packages that weighed
less than 25 pounds but were
shipped at the 25 pound rate
L----d
l--?-i
204 CT479