Professional Documents
Culture Documents
BranchID
1
1
1
OrderInvoice of The Bread Box
Branch Address BranchPhNum
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon 09789888222
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon 09789888222
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon 09789888222
OrderNum OrderDate StaffID StaffName CustomerID CustomerName
IVN001 30/5/2022 1001 Kyaw Kyaw C001 Yamin
IVN002 30/5/2023 1001 Kyaw Kyaw C002 Yamin
IVN003 30/5/2024 1001 Kyaw Kyaw C003 Yamin
CustomerAddress CustomerTownship CustomerPhNum
No.28,Hnin Se Str., Moe Kaung Road, Yangon Yankin 09765866444
No.28,Hnin Se Str., Moe Kaung Road, Yangon Yankin 09765866444
No.28,Hnin Se Str., Moe Kaung Road, Yangon Yankin 09765866444
CustomerEmail ItemID ItemDescription CategoryID ItemCategory
yamin@gmail.com B001 Jam Doughnut A001 Doughnut
yamin@gmail.com B004 Chocolate Chip Muffin A004 Muffin
yamin@gmail.com B010 Brown Finger Roll A010 Losse Rolls
Price Quantity Discount Tax DeliveryDate DeliveryTime Delivery Fees
500 3 0% 5% 30/5/2022 11:00 AM 2500
1000 2 0% 5% 30/5/2023 11:00 AM 2500
1800 2 0% 5% 30/5/2024 11:00 AM 2500
OrderInvoice of The B
Order
Composite Primary Key(Ord
OrderNum(FK)
IVN001
IVN001
IVN001
BranchID
1
OrderInvoice of The Bread Box
Order
Composite Primary Key(OrderNum, ItemID)
ItemID(PK)
B001
B004
B010
Branch Address
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon
derInvoice of The Bread Box
Order
te Primary Key(OrderNum, ItemID)
CategoryID ItemDescription ItemCategory Price Qty
A001 Jam Doughnut Doughnut 500 3
A004 Chocolate Chip Muffin Muffin 1000 2
A010 Brown Finger Roll Loose Rolls 1800 2
orderDetail
BranchPhNum OrderNum(PK) OrderDate StaffID StaffName
09789888222 IVN001 30/5/2022 1001 Kyaw Kyaw
erDetail
CustomerID CustomerName CustomerAddress
C001 Yamin No.28,Hnin Se Str., Moe Kaung Road, Yangon
CustomerTownship CustomerPhNum DeliveryDate DeliveryTime DeliveryFees
Yankin 09765866444 30/5/2022 11:00 AM 2500
OrderInvoice of The Bread Box
Order
Composite Primary Key(OrderNum, ItemID)
OrderNum(FK)
IVN001
IVN001
IVN001
BranchID
1
Item
ItemID(FK)
B001
B004
B010
OrderInvoice of The Bread Box
Order
Composite Primary Key(OrderNum, ItemID)
ItemID(FK)
B001
B004
B010
Branch Address
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon
Item
CategoryID
A001
A004
A010
ID)
Qty
3
2
2
Item
ItemDescription ItemCategory Price
Jam Doughnut Doughnut 500
Chocolate Chip Muffin Muffin 1000
Brown Finger Roll Loose Rolls 1800
orderDetail
StaffID StaffName CustomerID CustomerName
1001 Kyaw Kyaw C001 Yamin
CustomerAddress CustomerTownship CustomerPhNum
No.28,Hnin Se Str., Moe Kaung Road, Yangon Yankin 09765866444
CustomerEmail Discount Tax DeliveryDate DeliveryTime DeliveryFees
yamin@gmail.com 0% 5% 30/5/2022 11:00 AM 2500
OrderInvoice of The Bread Box
Order
OrderNum(FK)
IVN001
IVN001
IVN001
orderDetail
BranchID(FK)
1
Item
ItemID(PK)
B001
B004
B010
Customer
CustomerID(PK)
C001
Staff
StaffID(PK)
1001
Branch
BranchID(PK)
1
Category
CategoryID(PK)
A001
A004
A010
OrderInvoice of The Bread Box
ItemID(FK)
B001
B004
B010
StaffID(FK)
1001
ItemDescription
Jam Doughnut
Chocolate Chip Muffin
Brown Finger Roll
CustomerName
Yamin
StaffName
Kyaw Kyaw
Branch Address
No.216, Shop-house Building 2B, Times City Complex,Kamayut Township, Yangon
Category
ItemCategory
Doughnut
Muffin
Loose Rolls
Qty
3
2
2
Price
500
1000
1800
BranchPhNum
09789888222
Discount Tax DeliveryDate DeliveryTime DeliveryFees
0% 5% 30/5/2022 11:00 AM 2500
CustomerEmail
yamin@gmail.com
Table Name Order
Attributes DataType Null/Not Null Constraints
Foreign Key,
OrderNum char(6) Not Null Composite Primary
Key
Foreign Key,
ItemID char(4) Not Null Composite Primary
Key
Quantity int Not Null Default
Description
* BranchID will be saved in this column.
* Reference from 'BranchID' column of 'Branch' table.
* StraffID will be saved in this column.
* Reference from 'StaffID' column of 'Staff' table.
* CustomerID will be saved in this column.
* Reference from 'CustomerID' column of 'Customer' table.
Description
Description
Description
Description
* StraffID will be saved in this column.
* Primary key constraint will be applied to this column to store unique data.
* Format is ‘1001’. Check key constraint will be applied to this column. Check
key constraint is ‘[0-9][0-9][0-9][0-9]'
Description