100% found this document useful (1 vote)
1K views4 pages

Practical - 7 PDF

The document describes data from four tables - Student, Orders, Orders_C, Orders_P and Department, Department_E, Department_P - in first, second and third normal forms. It normalizes the data by splitting repeating groups into separate tables and removing functional dependencies to eliminate anomalies.

Uploaded by

YASH MODI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views4 pages

Practical - 7 PDF

The document describes data from four tables - Student, Orders, Orders_C, Orders_P and Department, Department_E, Department_P - in first, second and third normal forms. It normalizes the data by splitting repeating groups into separate tables and removing functional dependencies to eliminate anomalies.

Uploaded by

YASH MODI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Student

SID CID S_name C_name Grade Faculty F_phone


1 IS318, Adams Database, A,B Howser, 60192,
IS301 Program Langley 45869
2 IS318 Jones Database A Howser 60192
3 IS318 Smith Database B Howser 60192
4 IS301, Baker Program, A,B Langley, 45869,
IS318 Database Howser 60192

1NF:
Student [SID,CID,S_name,C_name,Grade,Faculty,F_phone]
SID CID S_name C_name Grade Faculty F_phone
1 IS318 Adams Database A Howser 60192
1 IS301 Adams Program B Langley 45869
2 IS318 Jones Database A Howser 60192
3 IS318 Smith Database B Howser 60192
4 IS301 Baker Program A Langley 45869
4 IS318 Baker Database B Howser 60192
2NF:
Student [SID,CID,S_name,C_name,Grade,Faculty,F_phone]
SID CID S_name C_name Grade Faculty F_phone
1 IS318 Adams Database A Howser 60192
1 IS301 Adams Program B Langley 45869
2 IS318 Jones Database A Howser 60192
3 IS318 Smith Database B Howser 60192
4 IS301 Baker Program A Langley 45869
4 IS318 Baker Database B Howser 60192
Student_F [Faculty,F_phone]
Faculty F_phone
Howser 60192
Langley 45869
3NF:
Student [SID,CID,S_name,C_name,Grade,Faculty,F_phone]
SID CID S_name C_name Grade Faculty F_phone
1 IS318 Adams Database A Howser 60192
1 IS301 Adams Program B Langley 45869
2 IS318 Jones Database A Howser 60192
3 IS318 Smith Database B Howser 60192
4 IS301 Baker Program A Langley 45869
4 IS318 Baker Database B Howser 60192
Student_C [CID,C_name]
CID C_name
IS318 Database
IS301 Program
Student_S [SID,S_name]
SID S_name
1 Adams
2 Jones
3 Smith
4 Baker

Orders
OID O_Date CID C_Name C_State PID P_Desc P_Price Qty
1006 10/24/09 2 Apex NC 7, 5, 4 Table, 800, 1, 1, 5
Desk, 325,
Chair 200
1007 10/25/09 6 Acme GA 11,4 Dresser, 500, 4, 6
Chair 200

1NF:
Orders [OID,O_Date,CID,C_Name,C_State,PID,P_Desc,P_Price,Qty]
OID O_Date CID C_Name C_State PID P_Desc P_Price Qty
1006 10/24/09 2 Apex NC 7 Table 800 1
1006 10/24/09 2 Apex NC 5 Desk 325 1
1006 10/24/09 2 Apex NC 4 Chair 200 5
1007 10/25/09 6 Acme GA 11 Dresser 500 4
1007 10/25/09 6 Acme GA 4 Chair 200 6
2NF:
OID O_Date CID C_name C_State
1006 10/24/09 2 Apex NC
1007 10/25/09 6 Acme GA

PID P_Desc P_Price


7 Table 800
5 Desk 325
4 Chair 200
11 Dresser 500

OID PID Qty


1006 7 1
1006 5 1
1006 4 5
1007 11 4
1007 4 6
3NF:
Orders [OID,O_Date,CID(F_Key),C_Name,C_State,PID(F_Key),P_Desc,P_Price,Qty]
OID O_Date CID C_Name C_State PID P_Desc P_Price Qty
1006 10/24/09 2 Apex NC 7 Table 800 1
1006 10/24/09 2 Apex NC 5 Desk 325 1
1006 10/24/09 2 Apex NC 4 Chair 200 5
1007 10/25/09 6 Acme GA 11 Dresser 500 4
1007 10/25/09 6 Acme GA 4 Chair 200 6
Orders_P [PID,P_Desc,P_Price]
PID P_Desc P_Price
7 Table 800
5 Desk 325
4 Chair 200
11 Dresser 500
Orders_C [CID,C_Name.C_State]
CID C_Name C_State
2 Apex NC
6 Acme GA

Department
DID Dname EID Ename PID Pname Btime
10 Finance 1,5,11 Huey, 27,25,22 Alpha, 4.5,3,7
Dewey, Beta,
Louie Gamma
14 R&D 2,4 Jack, Jill 26,21 Pail, Hill 8,9

1NF:
Department [DID,Dname,EID,Ename,PID,Pname,Btime]
DID Dname EID Ename PID Pname Btime
10 Finance 1 Huey 27 Alpha 4.5
10 Finance 5 Dewey 25 Beta 3
10 Finance 11 Louie 22 Gamma 7
14 R&D 2 Jack 26 Pail 8
14 R&D 4 Jill 21 Hill 9
2NF:
DID Dname
10 Finanace
14 R&D

EID Ename PID Pname Btime


1 Huey 27 Alpha 4.5
5 Dewey 25 Beta 3
11 Louie 22 Gamma 7
2 Jack 26 Pail 8
4 Jill 21 Hill 9
3NF:
Department [DID,Dname,EID(F_Key),Ename,PID(F_Key),Pname,Btime]
DID Dname EID Ename PID Pname Btime
10 Finance 1 Huey 27 Alpha 4.5
10 Finance 5 Dewey 25 Beta 3
10 Finance 11 Louie 22 Gamma 7
14 R&D 2 Jack 26 Pail 8
14 R&D 4 Jill 21 Hill 9
Department_E [EID,Ename]
EID Ename
1 Huey
5 Dewey
11 Louie
2 Jack
4 Jill
Department_P [PID,Pname]
PID Pname
27 Alpha
25 Beta
22 Gamma
26 Pail
21 Hill

You might also like