For the following requests, pack your answers into the zip file Assignment1_AccountName.zip,
then handle to the evaluator via email ()
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.
T_ORDER
id
type
cd
CUSTOME
R
ESTIMATION
id
name customer_cd customer_version
Answer Question 1:
i
d
cd
c
d
version
order_cd
nam
e
add
r
received_date
request_conte
representativ
e
total_amount
Question 2
Given the order table with following initial structure (Primary Key is mark post-fix with #)
Orde
r
1001
1002
1003
Customer Information
Cust Name Addr
41
42
43
Jones
Smith
Jones
121 1st
222 2nd
121 1st
Quant
1
200
1
10
Part1
Amt1
Screw
Motor
Saw
2.00
52.00
121.00
Quant
2
300
5
Part2
Amt2
Nut
Brace
2.25
44.44
Quant
3
100
Please:
a. Normalize that table structure to the first, second and third normalization forms
Answer Question 2a:
Part3
Amt3
Wasshr
0.75
•
First Normalization Form 1NF:
Order
Cust
1001
1001
1001
1002
1002
1003
•
•
41
41
41
42
42
43
Name
Jones
Jones
Jones
Smith
Smith
Jones
Addr
st
121 1
121 1st
121 1st
222 2nd
222 2nd
121 1st
Part
Quant
Amt
Screw
Nut
Wasshr
Motor
Brace
Saw
200
300
100
1
5
10
2.00
2.25
0.75
52.00
44.44
121.0
0
Second Normalization Form 2NF:
Order
1001
1002
1003
Cust
41
42
43
Name
Jones
Smith
Jones
121 1st
222 2nd
121 1st
Addr
Order
1001
1001
1001
1002
1002
1003
Part
Screw
Nut
Wasshr
Motor
Brace
Jones
Quant
200
300
100
1
5
10
Amt
2.00
2.25
0.75
52.00
44.44
121.00
Third Normalization Form 3NF:
Cust
41
42
43
Name
Jones
Smith
Jones
Addr
121 1st
222 2nd
121 1st
Order
1001
1002
1003
Order
1001
1001
1001
1002
1002
1003
Cust
41
42
43
Part
Screw
Nut
Wasshr
Motor
Brace
Jones
Quant
200
300
100
1
5
10
Amt
2.00
2.25
0.75
52.00
44.44
121.00
b. Draw relational schema diagram for the tables defined in the third normalization form above
Answer Question 2b:
DETAIL_ORDER
ORDER
order
order
part
quant
amt
cust
CUSTOMER
cust
name
addr