normalization

hi,
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
LVL 7
gudii9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
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.
0
arnoldCommented:
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
Teachers_table
Teacherid teachername teacheremail
1 Ashley teacher@somedomain.com
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.
0
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.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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  

Also
TeacherTeaches                        
TeacherID                                 1
LessonID                                   1
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vitor MontalvãoMSSQL Senior EngineerCommented:
what is various types of normalizations?
There's only one: https://en.wikipedia.org/wiki/Database_normalization
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
All valid inputs.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.