You are on page 1of 2

DATA1028: Database Design – Lab 1 (PK FK DAD)

Due: Monday, Jan. 11, 8:30 am Marks: 15 (rubric)


Brightspace Submission: Save as LastnameLab1 (substitute your last name) and submit to drop box.

I. Refer to Figure 1: Premiere Products Database on next page.


a) Fill in the Primary Key and Foreign Key for each table shown below:
Primary Key (PK) Foreign Key (FK)
Table Name
(must be one, unique) (may not be, label None or list)
REP RepNum None
CUSTOMER CustomerNum RepNum
ORDERS OrderNum CustomerNum
ORDERLINE OrderNum, PartNum OrderNum
PARTS PartNum PartNum

II. Refer to Figure 2: Car Database on next page.


a) Fill in the Primary Key and Foreign Key for each table shown below:
Primary Key (PK) Foreign Key (FK)
Table Name
(must be one, unique) (may not be, label None or list)
Location LocationCode None
Car VehicleID LocationCode
Purchase CustomerID, Vehicle ID VehicleID
Customer CustomerID CustomerID
b) From the Car Database, create a Data Access Diagram. Label the PK in bold and the FK underlined.
Draw lines between PK and FK. Can be created and copied from another program. Label each entity.
Figure 1: Premiere Products Database (some sample data shown)

Figure 2: Car Database (all field names shown)

You might also like