0% found this document useful (0 votes)
21 views3 pages

Class Exercises Post

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views3 pages

Class Exercises Post

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Entity Relational Modelling Class Exercises

Exercise 1 Questions:

1. Identify the Business Rule (s) that can result in the following database design.
2. Create an ERD for the given database tables.

PRODUCT
PROD_CODE PROD_DESCRIPTION PROD_PRICE VEND_CODE
12-WW/P2 7.25-in. power saw blade $1.19 123
1QQ23-55 2.5-in. wood screw, 100 $4.49 123
231-78-W PVC pipe, 3.5-in., 8 ft. $8.87 121
33564/U Rat-tail file, 0.125-in., fine $1.19 123
AR/3/TYR Cordless drill, 0.25-in. $45.99 121
DT-34-WW Phillips screwdriver pack $23.29 123
EE3-67/W Sledge hammer, 12 lb. $17.99 121
ER-56/DF Houselite chain saw, 16-in. $235.49 125
FRE-TRY9 Jigsaw, 12-in blade $1.45 125
SE-67-89 Jigsaw, 8-in. blade $1.35 125
ZW-QR/AV Hardware cloth, 0.25-in. $12.99 123
ZX-WR/FR Claw hammer $8.95 121

VENDOR
VEND_CODE VEND_NAME VEND_PHONE
120 BargainSnapper, Inc. 899-1234
121 Cut'nGlow Co. 342-9896
122 Rip & Rattle Supply Co. 225-1127
123 Tools 'R Us 546-7894
124 Trowel & Dowel, Inc. 453-4567
125 Bow & Wow Tools 324-9988

1
Exercise 2 Questions:

Consider the design of the database given in the discussion section of last week’s lab. Create
the ERD for this database.

2
Exercise 3 Questions:

Create an ERD given the following tables.

Truck
truck_num base_code type_code truck_miles truck_buy_date truck_serial_num
1001 501 1 32,123.50 23-sep-03 AA-322-12212-W11
1002 502 1 76,984.30 05-feb-02 AC-342-22134-Q23
1003 501 2 12,346.60 11-nov-03 AC-445-78656-Z99
1004 1 2,894.30 06-jan-04 WQ-112-23144-T34
1005 503 2 45,673.10 01-mar-03 FR-998-32245-W12
1006 501 2 193,245.70 15-jul-00 AD-456-00845-R45
1007 502 3 32,012.30 17-oct-01 AA-341-96573-Z84
1008 502 3 44,213.60 07-aug-02 DR-559-22189-D33
1009 503 2 10,932.90 12-feb-04 DE-887-98456-E94

Type
type_code type_description
1 Single box, double-axle
2 Single box, single-axle
3 Tandem trailer, single-axle

Base
base_code base_city base_state base_area_code base_phone base_manager
501 Murfreesboro TN 615 123-4567 Andrea D.
Gallager
502 Lexington KY 568 234-5678 George H.
Delarosa
503 Cape MO 456 345-6789 Maria J.
Girardeau Talindo
504 Dalton GA 901 456-7890 Peter F.
McAvee

You might also like