0% found this document useful (0 votes)
85 views6 pages

Normalization Exercise-1 The Solution

The document describes normalizing a report about students and courses into 1NF, 2NF and 3NF. In 1NF, the data is split across multiple rows based on attributes. In 2NF, the data is split into relations based on functional dependencies to remove transitive dependencies. In 3NF, the data is split further to remove non-key attributes that are not dependent on the whole primary key. The relations in each normal form are shown along with the functional dependencies.

Uploaded by

hawra.sayed.ali
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
0% found this document useful (0 votes)
85 views6 pages

Normalization Exercise-1 The Solution

The document describes normalizing a report about students and courses into 1NF, 2NF and 3NF. In 1NF, the data is split across multiple rows based on attributes. In 2NF, the data is split into relations based on functional dependencies to remove transitive dependencies. In 3NF, the data is split further to remove non-key attributes that are not dependent on the whole primary key. The relations in each normal form are shown along with the functional dependencies.

Uploaded by

hawra.sayed.ali
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/ 6

TM351 Normalization

Consider the following report about some students in different


courses.

UNF
Student_ID Student_Name Course_Code Course_Title Course_Grade Tutor_Nme Tutor_Phone

TM351 Data Science A Dr. Hafiz 60192


100 Hasan
M251 Java B Dr. Ashraf 45869

200 Ahmad TM351 Data Science A Dr. Hafiz 60192

300 Khalid TM351 Data Science B Dr. Hafiz 60192

M251 Java A Dr. Ashraf 45869


400 Salman
TM351 Data Science B Dr. Hafiz 60192

1. Normalize the above report into 1NF, 2NF and 3NF.

2. Show the complete relations with the given data in each normal form.

3. Show the functional dependencies in each normal form

Excersie-1 The Solution Page |1


TM351 Normalization

1NF
Student_ID Student_Name Course_Code Course_Title Course_Grade Tutor_Name Tutor_Phone

100 Hasan TM351 Data Science A Hafiz 60192

100 Hasan M251 Java B Ashraf 45869

200 Ahmad TM351 Data Science A Hafiz 60192

300 Khalid TM351 Data Science B Hafiz 60192

400 Salman M251 Java A Ashraf 45869

400 Salman TM351 Data Science B Hafiz 60192

Functional Dependency (FD)

Student_ID, Course_Code  Student_Name, Course_Title, Course_Grade,

Tutor_Name, Tutor_Phone

Excersie-1 The Solution Page |2


TM351 Normalization

2NF
Student_ID Course_Code Course_Grade

100 TM351 A

100 M251 B

200 TM351 A

300 TM351 B

400 M251 A

400 TM351 B

Student_ID Student_Name

100 Hasan

200 Ahmad

300 Khalid

400 Salman

Course_Code Course_Title Tutor_Name Tutor_Phone

TM351 Data Science Hafiz 60192

M251 Java Ashraf 45869

Functional Dependency (FD)

Student_ID, Course_Code  Course_Grade

Excersie-1 The Solution Page |3


TM351 Normalization

Student_ID  Student_Name

Course_Code  Course_Title, Tutor_Name, Tutor_Phone

Excersie-1 The Solution Page |4


TM351 Normalization

3NF
Student_ID Course_Code Course_Grade

100 TM351 A

100 M251 B

200 TM351 A

300 TM351 B

400 M251 A

400 TM351 B

Student_ID Student_Name Tutor_Phone Tutor_Name

100 Hasan 60192 Hafiz

200 Ahmad 45869 Ashraf

300 Khalid

400 Salman

Course_Code Course_Title Tutor_Phone

TM351 Data Science 60192

M251 Java 45869

Functional Dependency (FD)

Student_ID, Course_Code  Course_Grade

Excersie-1 The Solution Page |5


TM351 Normalization

Student_ID  Student_Name

Course_Code  Course_Title, Tutor_Phone

Tutor_Phone  Tutor_Name,

Excersie-1 The Solution Page |6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy