Professional Documents
Culture Documents
ABC Store
Invoice Number:1001
Date: 16/7/2020
Customer Number: C001
Customer Name: U Mg Mg
Address: Mdy
Item Code Description Qty Price Amount
I234 Exercise Book 12 300 3600
Total 22600
Signature:
Invoice Date Custome Customer Address Item Description Price Qty
Number r Name Code
Number
1001 16/7/2020 C001 U Mg Mg Mdy I234 Exercise 300 12
Book
1001 16/7/2020 C001 U Mg Mg Mdy I345 Soft Pen 500 10
1001 16/7/2020 C001 U Mg Mg Mdy I456 Ball Pen 700 20
1002 16/7/2020 C002 Daw Aye Ygn I345 Soft Pen 500 4
1002 16/7/2020 C002 Daw Aye Ygn I555 Pencil 250 4
1003 16/7/2020 C003 U Soe Tgy I345 Soft Pen 500 2
Amount=Qty*Price Total=Amount+
Amount+…..
What is derive attribute?
What is problem?
Repeated Items?
Multivalued Items/Attributes
Attributes
Unnormal Form (UNF)
Invoice_Number
Date
Customer_Number
Customer_Name
Address
Item_Code
Description
Price
Qty
Amount
Total
Customer_Number Description
Customer_Name Price
Qty
Address
(PK) 1001 (PK) I234
1001 I345
1001 I456
Primary Key
Composite Key
Candidate Key
Foreign Key
Problem/ Anomalies
Insert- without Invoice Number
Delete- Information Lost
Update- Inconsistency
ERD
Invoice Customer
Invoice_Item
Item