You are on page 1of 4

farimarwat@yahoo.

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

The assignment is submitted after due date.


The submitted assignment does not open.
The submitted assignment is in the format other than MS Word (doc).
The assignment is copied (from other student or copy from handouts).
Student ID is not mentioned in the assignment File or name of file is other than student ID.
For any query about the assignment, contact at cs614@vu.edu.pk

GOOD LUCK

Q: Normalize the below table up to 3rd normal form.


Read the Instructions (given on the next page) carefully before solving the assignment.

StudentID

StudentStudent- SpecializationSpecialization Name


Semester

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

farimarwat@yahoo.com CS614 Data Warehousing

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 CS614 Data Warehousing

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 CS614 Data Warehousing

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

Do not send the archived file (.rar etc).

Understand the scenario on the basis of given data only.

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.

Show the data along with table structure.

Try to upload the assignment before BONUS day

farimarwat@yahoo.com CS614 Data Warehousing

You might also like