For the following requests, pack your answers into the zip file Assignment1_AccountName.zip, then handle to the evaluator via email XYZ@fsoft.com.vn Barem: Q1-30%, Q2.1-40%, Q2.2-30% Que
Trang 1For the following requests, pack your answers into the zip file Assignment1_AccountName.zip, then handle to the evaluator via email (XYZ@fsoft.com.vn)
Barem: Q1-30%, Q2.1-40%, Q2.2-30%
Question 1
Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course (Primary Key is mark post-fix with #):
CUSTOMER(id#, cd#, version#, name, addr, representative)
T_ORDER(id#, type, cd, name, customer_cd, customer_version, received_date,
request_content)
ESTIMATION(id#, cd, order_cd, total_amount)
Draw a relational schema diagram specifying the foreign keys for this schema
Answer:
Question 2
Given the order table with following initial structure (Primary Key is mark post-fix with #)
Customer Information
Orde
r Cust Name Addr Quant 1 Part1 Amt1 Quant 2 Part2 Amt2 Quant 3 Part3 Amt3
1001 41 Jones 121 1 st 200 Screw 2.00 300 Nut 2.25 100 Wasshr 0.75
1002 42 Smith 222 2 nd 1 Motor 52.00 5 Brace 44.44
1003 43 Jones 121 1 st 10 Saw 121.00
Please:
1 Normalize that table structure to the first, second and third normalization forms
Answer:
First Normalization Form:
1001 41 Jones 121 1 st Screw 200 2.00
1001 41 Jones 121 1 st Nut 300 2.25
1001 41 Jones 121 1 st Wasshr 100 0.75
1002 42 Smith 222 2 nd Motor 1 52.00
Trang 21002 42 Smith 222 2 Brace 5 44.44
1003 43 Jones 121 1 st Saw 10 121.0
0 Second Normalization Form:
Third Normalization Form:
2 Draw relational schema diagram for the tables defined in the third normalization form above
Answer: