2. NORMALIZATION
❖ Technique to remove or reduce redundancy from table.
S_ID S_NAME AGE
1 RAM 20
2 VARUN 25
1 RAM 20
←
←
“NORMALIZATION divides the tables into subtables to reduce redundancy”
3. 1NF ➔ Table should not contain any multivalued attributes.
ROLL_NO NAME COURSE
1 SAI C/C++
2 HARSH JAVA
3 ONKAR C/DBMS
ROLL_NO NAME
1 SAI
2 HARSH
3 ONKAR
ROLL_NO COURSE
1 C
1 C++
2 JAVA
3 C
3 DBMS
Not in 1st NF
1st NF
Primary Key = ROLL_NO
Primary Key = ROLL_NOCOURSE
5. 3NF
➔ Table must be in 2NF.
➔ There should be no transition dependency in table.
Prime attributes = ROLL_NO
Non-Prime attributes = NAME, COURSE, FEES
Functional Dependency = ROLL_NO -> NAME ✔
COURSE ->FEES ✖
3rd NF
ROLL_NO NAME COURSE FEES
1 AKASH C 100
2 PRATIK C++ 200
3 MAHESH C 100
4 OM JAVA 300
ROLL_NO NAME COURSE
1 AKASH C
2 PRATIK C++
3 MAHESH C
4 OM JAVA
COURSE FEES
C 100
C++ 200
JAVA 300
Functional Dependency = ROLL_NO -> NAME ✔
ROLL_NO -> COURSE ✔
Prime
Non-Prime Non-Prime
Prime
Non-Prime
Functional Dependency = COURSE -> FEES ✔