You are on page 1of 8

Database System (CMPD 314)

Exercise 4 - Group Members

No Name Student ID
1 Nurul Atiqah Binti Mohd Azuan DC97518

2 Nur Qistina Binti Mohamed Saifuddin  DC97471

3 Nikkhesh Naiidu A/L Kalaiselvan DC97473

4 Puteri Nur Syafiqah Binti Ahmad DC97558


MPD 314)
Members
Database Name : Pizza Order Database

Metadata
CUSTOMER
Attribute Datatype Size/Length
customerID (PK) varchar 6
customer_name varchar 15
AddressID (FK) char 4
customer_number varchar 12
Email varchar 20

PIZZA PIZZA_PRICE
Attribute Datatype Size/Length Attribute
pizzaID (PK) char 5 pizzasizeID (PK)
PZ_flavor Varchar 18 PZ_Size
PZ_Price

ORDERS
Attribute Datatype Size/Length
OrderID (PK) integer 4
CustomerID (FK) varchar 6
EmployeeID (FK) char 5
PizzaID (FK) char 5
pizzasizeID (FK) char 1
Total_Price float 2 decimal places(3,2)
Date Date no need
Time Integer no need
StatusID (FK) varchar 2
Qty integer 2
paymentmethod varchar 3

STATUS
Attribute Datatype Size/Length
statusID (PK) varchar 2
status_details Varchar 11

EMPLOYEES
Attribute Datatype Size/Length
employeeID (PK) char 5
employee_name varchar 15
employee_number varchar 12

CUSTOMERADDRESS
Attribute Datatype Size/Length
AddressID (PK) char 4
Line_1 Varchar 20
Line_2 Varchar 20
City Varchar 15
Postcode integer 5
Country Varchar 8
Datatype Size/Length
char 1
Varchar 12
float 2 decimal places(3,2)
Relational Table
CUSTOMER
customerID (PK) customer_name AddressID (FK) customer_number
CS0101 Nikkhesh Naiidu A001 +60174257293
CS0102 Qistina A002 +60174257292
CS0103 Puteri A003 +60174257291

CUSTOMERADDRESS
AddressID (PK) Line_1 Line_2 City
A001 LOT 8916 KAMPUNG PISANG KAJANG
A002 LOT 8917 KAMPUNG LIMAU KOTA BAHRU
A003 LOT 8918 KAMPUNG TEMBIKAI GOMBAK

PIZZA PIZZAPRICE
PizzaID (PK) PZ_flavor PZSizeCode
P0001 Beef paperoni M
P0002 Tuna temptation L
P0003 Aloha chicken S

ORDERS
OrderID (PK) CustomerID (FK) EmployeeID (FK) PizzaID (FK)
1001 CS0101 E0001 P0001
1002 CS0102 E0002 P0002
1003 CS0103 E0003 P0003

STATUS
StatusID (PK) Status_detail
OT order taken
P prepared
D delivered

EMPLOYEES
EmployeeID (PK) Employee_name Employee_number
E0001 qistina +60112345678
E0002 puteri +60112345679
E0003 tiqah +60112345680
Email
Nikkhesh@gmail.com
Qistina@gmail.com
Puteri@gmail.com

Postcode Country
43000 MALAYSIA
15150 MALAYSIA
68100 MALAYSIA

PZ_Size PZ_Price
medium 29.00
large 39.00
small 9.00

PZSizeCode (FK) Qty Total_Price Date Time


M 1 29.00 11/10/2021 1159
L 2 78.00 11/11/2021 1600
S 1 9.00 11/12/2021 1400
StatusID (FK) Paymentmethod
OT COD
P COD
D COD

You might also like