Professional Documents
Culture Documents
com
Assignment No. 01
Semester Spring 2012
Data Warehousing-CS614
Total Marks: 15
Due Date: 16/04/2012
Objective:
To learn and understand basic concepts of Normalization.
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit (get zero marks) if:
o
o
o
o
o
GOOD LUCK
StudentID
Bc00001
SE
AI
Graphics
AI
SE
Graphics
AI
SE
AI
Graphics
AI
Bc00002
Bc00003
Bc00004
Bc00005
Bc00006
Ali
Safdar
Usman
Naeem
Naveed
Zaman
F08
Sp09
F09
Sp09
F08
Sp09
F09
F09
Sp010
Sp010
Sp010
Semester
StartDate
15-07-08
15-02-09
15-07-09
15-02-09
15-07-08
15-02-09
15-07-09
15-07-09
15-02-10
15-02-10
15-02-10
Semester
EndDate
21-12-08
25-06-09
21-12-09
25-06-09
21-12-08
25-06-09
21-12-09
21-12-09
25-07-10
25-07-10
25-07-10
Specialization
Supervisor
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
farimarwat@yahoo.com
Bc00007
SE
Zeshan
Sp010
15-02-10
25-07-10
Prof Khalid
Ans:
To get the first normal form we will remove the multiple attributes without any loss.
Below is the 1NF
Student-ID
StudentStudentSpecialization Name
SpecializationSemester
Semester
StartDate
Semester
End-Date
Specialization
Supervisor
BC00001
BC00001
BC00001
Bc00002
Bc00003
Bc00003
Bc00003
Bc00004
Bc00004
Bc00005
Bc00006
Bc00007
SE
AI
Graphics
AI
SE
Graphics
AI
SE
AI
Graphics
AI
SE
F08
SP09
F09
Sp09
F08
SP09
F09
F09
Sp010
Sp010
Sp010
Sp010
15-07-08
15-02-09
15-07-09
15-02-09
15-07-08
15-02-09
15-07-09
15-07-09
15-02-10
15-02-10
15-02-10
15-02-10
21-12-08
25-06-09
21-12-09
25-06-09
21-12-08
25-06-09
21-12-09
21-12-09
25-07-10
25-07-10
25-07-10
25-07-10
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Ali
Ali
Ali
Safdar
Usman
Usman
Usman
Naeem
Naeem
Naveed
Zaman
Zeshan
2NF
To get the 2NF we will move the redundant to a separate table and also the table should be in 1NF.
StudentID
BC00001
BC00001
BC00001
Bc00002
Bc00003
Bc00003
Bc00003
Bc00004
Bc00004
Bc00005
Bc00006
Bc00007
StudentStudentSpecialization Name
Specialization
Supervisor
SE
AI
Graphics
AI
SE
Graphics
AI
SE
AI
Graphics
AI
SE
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Ali
Ali
Ali
Safdar
Usman
Usman
Usman
Naeem
Naeem
Naveed
Zaman
Zeshan
Semester table
farimarwat@yahoo.com
Student-ID
BC00001
BC00001
BC00001
Bc00002
Bc00003
Bc00003
Bc00003
Bc00004
Bc00004
Bc00005
Bc00006
Bc00007
SpecializationSemester
Semester
Start-Date
Semester
End-Date
F08
SP09
F09
Sp09
F08
SP09
F09
F09
Sp010
Sp010
Sp010
Sp010
15-07-08
15-02-09
15-07-09
15-02-09
15-07-08
15-02-09
15-07-09
15-07-09
15-02-10
15-02-10
15-02-10
15-02-10
21-12-08
25-06-09
21-12-09
25-06-09
21-12-08
25-06-09
21-12-09
21-12-09
25-07-10
25-07-10
25-07-10
25-07-10
3NF
Now we will eliminate the redundant data and also the tables should be in 2NF
Student Table:
Student-ID
Student-Name
BC00001
BC00002
BC00003
BC00004
BC00005
BC00006
BC00007
Ali
Safdar
Usman
Naeem
Naveed
Zaman
Zeshan
Specialization Table:
Student-ID
BC00001
BC00001
BC00001
Bc00002
Bc00003
Bc00003
Bc00003
Bc00004
Bc00004
Bc00005
Bc00006
Bc00007
Specialization
Supervisor
SE
AI
Graphics
AI
SE
Graphics
AI
SE
AI
Graphics
AI
SE
Specialization
Supervisor
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Shaw
Prof Ashraf
Prof Khalid
Prof Ashraf
Prof Shaw
Prof Ashraf
Prof Khalid
Semester Table:
farimarwat@yahoo.com
Student-ID
BC00001
BC00001
BC00001
Bc00002
Bc00003
Bc00003
Bc00003
Bc00004
Bc00004
Bc00005
Bc00006
Bc00007
SpecializationSemester
Semester
Start-Date
Semester
End-Date
F08
SP09
F09
Sp09
F08
SP09
F09
F09
Sp010
Sp010
Sp010
Sp010
15-07-08
15-02-09
15-07-09
15-02-09
15-07-08
15-02-09
15-07-09
15-07-09
15-02-10
15-02-10
15-02-10
15-02-10
21-12-08
25-06-09
21-12-09
25-06-09
21-12-08
25-06-09
21-12-09
21-12-09
25-07-10
25-07-10
25-07-10
25-07-10
Guidelines / Instructions
Give the reason, if relation cannot be converted in any Particular Normal Form (1st, 2nd, 3rd ).
Dont convert the relation in to 3rd normal form directly. Show each normal form of the relation.