What is normalization concept

if a table called Student as below with 4 columns and data as below

Student table

StudentName YearOfStudy Subject TeacherName
john                    10thGrade    Maths    Ashley

why it is better to move away Teacher information to separate table as below

Teacher Table

TeacherName TeachingSubject
Ashley                 Maths

what is various types of normalizations?
Please advise
Who is Participating?
John TsioumprisSoftware & Systems EngineerCommented:
Well you small example should be modified like this :
Table Student
StudentID           1
StudentName     John

Table StudyYears
YearID                  1
Year                      10thGrade    

Table Lesson
LessonID               1
Lesson                    Maths

Table Teachers
TeacherID                1
Teacher                     Ashley

Then you could have a :
Table StudentAttendance      
Student                                     1
YearOfStudy                             1
Lesson                                       1
Teacher                                      1  

TeacherID                                 1
LessonID                                   1
Ryan ChongCommented:
why it is better to move away Teacher information to separate table as below
in general speaking, to ease the process of data updating and reduce duplicate of data.
Yes, creating a teacher table that will include much more then just the teacher's name, potentially include contact information, subject matter expertise (separate table since sone teachers might have multiple subject expertise)
With just this change
Teacherid teachername teacheremail
1 Ashley
For this example only changing one item the teacher reference

Studentid student-name grade teacherref_id
1 John 10th 1

What this provides is minimizing storage space while maximizing info.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Michael EspeyoperatorCommented:
If the name of the teachers changes (eg marriage), you only have to change it once.

Besides, if you don't normalize it to the 1st form, you're open to spelling errors.

So, in the same class it can happen that students have Mr Smith and Mr Simth as a teacher.
Vitor MontalvãoMSSQL Senior EngineerCommented:
what is various types of normalizations?
There's only one:
Vitor MontalvãoMSSQL Senior EngineerCommented:
All valid inputs.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.