Vous êtes sur la page 1sur 4

Four separate datasets are given below.

You may select any one to create a


database model.
Note: Fields written in RED and marked with are key fields. Fields written in
GREEN are foreign keys. Below each table given ERD [Entity (Table) Relationship
Diagram]. Symbol means ‘ONE TO MANY’ and represents
‘ONE TO ONE’ relationship.

The database design for:


a) BIKE SALES

1. Order entity 2. Customer entity 3. Payment entity


Attribute Data type Attribute Data type Attribute Data type
Order Number Number Title Dropdown Card Type Text

Order Date Short date First Name Text Card Number Number

Make Text Last Name Text Expiry Date Short date

Model Text Address Line 1 Text

Price Currency £ Town Text

County Text

Post Code Text


Order Number Number
(Foreign key)
Card Number Number
(Foreign key)

Entity Relationship Diagram (ERD)


b) ORDERS OF BOOKS

1. Order entity 2. Customer entity 3. Payment entity


Attribute Data type Attribute Data type Attribute Data type
Order ID Text Title Dropdown Card Type Text

Order Date Short date First Name Text Card Number Number

Number Ordered Number Last Name Text Expiry Date Short date

ISBN Number Address Line 1 Text

Author First Name Text Town Text

Author Last Name Text County Text

Book Title Text Post Code Text

Price Currency £ Order ID Text


(Foreign key)
Type Text Card Number Number
(Foreign key)
c) SKIBOARD DATA

1. Order entity 2. Customer entity 3. Payment entity


Attribute Data type Attribute Data type Attribute Data type
Order Code Text Title Dropdown Card Type Text

Stoke Code Text First Name Text Card Number Number

Order Date Short date Last Name Text Expiry Date Short date

Make Text Address Line 1 Text

Model Text Town Text

Item Type Text County Text

Price Currency £ Post Code Text


Order Code Text
(Foreign key)
Card Number Number
(Foreign key)
d) TICKETS

1. Order entity 2. Customer entity 3. Payment entity


Attribute Data type Attribute Data type Attribute Data type
Order Number Number Title Dropdown Card Type Text
Temp
Performance Name Text First Name Text Card Number Number

Performance Date Short date Last Name Text Expiry Date Short date

Performance Type * Dropdown Address Line 1 Text

Start Date Short date Town Text

End Date Short date County Text

Cost of Seats Currency £ Post Code Text

Number of Tickets Number Order Number Number


Temp (Foreign key)
Card Number Number
(Foreign key)
* Two types are given ‘M’ for Morning and ‘E’ for Evening