Any database for example is fine.
Normalization is the process in which the data is organized in a database in order to avoid data redundancy, insertion, update and deletion anomalies. Take example to below table-
course_num |
course_nme |
prof_name |
prof_email |
student_id |
student_name |
student_email |
CSE101 |
SE |
John Tan |
S101 S102 |
Shadma Jack |
||
CSE102 |
DBMS |
Glenn |
S107 |
Shagil |
||
CSE103 |
DBDA |
Simon |
S108 |
Eunica |
||
CSE104 |
DAA |
Satish |
S108 |
Yaxin |
1 NF: A table is said to be in first normal form it has the following properties:
The student detail in the given COURSE table is not atomic, so it can be make atomic by putting each records in individual row.
The first normal form of the given table would be-
COURSE(course_num, course_nme, prof_name, prof_email, student_id, student_name, student_email)
2 NF: A table is said to be in its second normal form if:
The given COURSE table when converted to 2 NF, it gives 3 tables-
COURSE(course_num, course_name)
Professor(prof_id, prof_name, prof_email)
Student(student_id, student_name, student_email)
Enroll(enroll_id, course_num, student_id, prof_id, grade)
3 NF : A table is said to be in third normal form if:
Tables in 3 NF-
COURSE(course_num, course_name)
Professor(prof_id, prof_name, prof_email)
Student(student_id, student_name, student_email)
Enroll(enroll_id, course_num, student_id, prof_id)
Grade(enroll_id, grade)
Get Answers For Free
Most questions answered within 1 hours.