Database normalization

21

description

Database normalization

Transcript of Database normalization

Page 1: Database normalization
Page 2: Database normalization

Database Normalization

Arun .R. [email protected]/

arunrmenontwitter.com/iamarunmenonin.linkedin.com/in/

mearunmenon+919846629020

Page 3: Database normalization

Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Page 4: Database normalization

Database Normalization

• What is normalization?

• Need of normalization ?

Page 5: Database normalization

What is normalization?

• Database normalization is the process of organizing the fields and tables of a relational database.

• It is a multi-step process that puts data into tabular form and linking data using relation tables.

Page 6: Database normalization

Need of normalization ?

• Avoid redundancy.• Increase performance • Easy Updating• Accuracy

Page 7: Database normalization

• Advantages– Reduce redundancy – Easy data updation– Reduce errors

• Disadvantages– Increase number of tables– Complexity increases

Page 8: Database normalization

First Normal Form (1NF)

• A relation is said to be in 1NF if ,

all attributes contain atomic values.

Page 9: Database normalization

candidate keys {int_id,vchr_subject_opted}

Primary key {int_id}

Page 10: Database normalization

Second Normal Form(2NF)

• A table is in 2nf if

– It is in 1nf– Every non prime attribute must dependent on the

the entire primary key.

Page 11: Database normalization

candidate keys {int_id,vchr_subject_opted}

Primary key {int_id}

candidate keys {int_id,vchr_subject_opted}

Page 12: Database normalization

Third Normal Form(3NF)

• A table is in 3NF if

– It is in 2NF– No attributes is transitively dependent to primary

key

Page 13: Database normalization

Primary key {pk_int_stu_id}

Primary key {pk_int_stu_id}

Primary key {pk_int_zip_id}

Page 14: Database normalization

• Online Exam Management System• Users:• Admin• Student

• Admin • Login • View Profile• Edit Profile• Facility to manage student• Facility to manage exam• Student• Attend exams• View mark

Page 15: Database normalization

• tbl_user• tbl_user_role• tbl_log• tbl_user_details• tbl_subject• tbl_exam• tbl_question• tbl_options• tbl_answer• tbl_exam_details

Page 16: Database normalization

Tbl_user Tbl_user_roles

Tbl_log

Tbl_user_details

Tbl_subject

Page 17: Database normalization

tbl_exam

tbl_question

tbl_options

tbl_answer

tbl_exam_details

Page 18: Database normalization

Thank You

Page 19: Database normalization

Want to learn more about programming or Looking to become a good programmer?

Are you wasting time on searching so many contents online?

Do you want to learn things quickly?

Tired of spending huge amount of money to become a Software professional?

Do an online course @ baabtra.com

We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.

Page 20: Database normalization

Follow us @ twitter.com/baabtra

Like us @ facebook.com/baabtra

Subscribe to us @ youtube.com/baabtra

Become a follower @ slideshare.net/BaabtraMentoringPartner

Connect to us @ in.linkedin.com/in/baabtra

Give a feedback @ massbaab.com/baabtra

Thanks in advance

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 21: Database normalization

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode

Start up VillageEranakulam,Kerala, India.Email: [email protected]

Contact Us