Sie sind auf Seite 1von 3

Normalization between UNF,1NF, 2NF and 3NF (Example) UNF Course No CSD217 Course Title Database Management Systems

Database Management Systems Database Management Systems Database Management Systems Instructor Instructor No Name I00007 Mr Si Tu Pit I00007 Mr Si Tu Pit Mr Si Tu Pit Mr Si Tu Pit Instructor Location Block 2/18 Block 2/18 Block 2/18 Block 2/18 Student No 1234 Student Major Name Ali IT GPA 2.0

CSD217

2345

Abu

Accoun t Law

2.5

CSD217

I00007

3456

Ahmad

3.0

CSD217

I00007

4567

Alu

Science

3.5

1 NF (Flattening the UNF table) -> Course Course No (PK) Course Title Instructor No Instructor Name Instructor Location

(Repeating group + copy of PK) -> Student Grade Course No (FK) 2 NF Student Table Student No Course Table Course No (PK) Course Title Instructor No Instructor Name Instructor Location Student Name Student No Student Name Major GPA

Student Grade Table Course No (FK) Student No Major GPA

3 NF Instructor Table Instructor No Instructor Name Instructor Location

Student Grade Table Course No (FK) Student Table Student No Course Table Course No (PK) Course Title Instructor No Student Name Student No Major GPA

Normalization UNF 1 NF 2NF 3NF

Student Grade

Student Grade Course

Student Student Grade Course

Student Student Grade Course Instructor

ERD

Instructor

Teaching

Course

Derived

Student

Score

Student Grade