Normalization Edited by: Nada Alhirabi.

Slides:



Advertisements
Similar presentations
5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Advertisements

Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina.
1/22/20091 Study the methods of first, second, third, Boyce-Codd, fourth and fifth normal form for relational database design, in order to eliminate data.
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Relational Normalization Theory. Limitations of E-R Designs Provides a set of guidelines, does not result in a unique database schema Does not provide.
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Week 6 Lecture Normalization
CS143 Review: Normalization Theory Q: Is it a good table design? We can start with an ER diagram or with a large relation that contain a sample of the.
CSE314 Database Systems Basics of Functional Dependencies and Normalization for Relational Databases Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E.
Temple University – CIS Dept. CIS331– Principles of Database Systems V. Megalooikonomou Database Design and Normalization (based on notes by Silberchatz,Korth,
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos Database design and normalization.
1 Dept. of CIS, Temple Univ. CIS661 – Principles of Data Management V. Megalooikonomou Database design and normalization (based on slides by C. Faloutsos.
Copyright © Curt Hill Schema Refinement II 2 nd NF to 3 rd NF to BCNF.
Database Architecture Normalization. Purpose of Normalization A technique for producing a set of relations with desirable properties, given the data requirements.
SLIDE 1IS 257 – Fall 2006 Normalization Normalization theory is based on the observation that relations with certain properties are more effective.
1 CS490 Database Management Systems. 2 CS490 Database Normalization.
Lecture 11: Functional Dependencies
COP 6726: New Directions in Database Systems
Normalization (Database Design)
INLS 623 – Database Normalization
Functional Dependency and Normalization
Normalization (Chapter 2)
CS422 Principles of Database Systems Normalization
Normalization Karolina muszyńska
CS 3630 Database Design and Implementation
A brief summary of database normalization
Normalization First Normal Form (1NF) Boyce-Codd Normal Form (BCNF)
CS422 Principles of Database Systems Normalization
Relational Database Design by Dr. S. Sridhar, Ph. D
Payroll Management System
Database Normalization
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
11/12/2018.
Relational Design Theory
Relational Design Theory
Normalization There is a sequence to normal forms:
Database Normalization
Chapter 6 Normalization of Database Tables
Module 5: Overview of Normalization
Schema Refinement What and why
Normalization Murali Mani.
CS 3630 Database Design and Implementation
Lecture #17: Schema Refinement & Normalization - Normal Forms
Functional Dependencies and Normalization
Chapter 7 Normalization Chapter 13 in Textbook.
Normalization A337.
Database solutions The process of normalization Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms:
Normalization Dale-Marie Wilson, Ph.D..
Sridhar Narayan Normalization Sridhar Narayan
Functional Dependencies and Relational Schema Design
Normalization Normalization
Normalization.
Normalization of Database Tables Uploaded by: mysoftbooks.ml
Relational Design Theory
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Normalization Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting.
Unit 7 Normalization (表格正規化).
Normalization of DB relations examples Fall 2015
Sampath Jayarathna Cal Poly Pomona
NORMALIZATION FIRST NORMAL FORM (1NF):
Designing Relational Databases
Lecture 5: Functional dependencies and normalization
Relational Database Design
Database Design Theory CS405G: Introduction to Database Systems
Database Management System
Chapter 7a: Overview of Database Design -- Normalization
Database Normalization
Functional Dependencies and Normalization
Functional Dependencies and Normalization
Lecture 09: Functional Dependencies
Presentation transcript:

Normalization Edited by: Nada Alhirabi

Normalization:Why do we need to normalize? To avoid redundancy (less storage space needed, and data is consistent) To avoid update/delete anomalies Insertion anomaly: Cannot make a record Jones’ address because he is not taking any classes Ssn c-id Grade Name Address 123 cs331 A smith Main cs351 B Ssn c-id Grade Name Address 123 cs33 1A smith Main … 234 null jones Forbes

Normal Forms First Normal Form – 1NF Second Normal Form – 2NF Third Normal Form – 3NF: In practice, “normalized” means in BCNF or 3NF Fourth Normal Form – 4NF Fifth Normal Form – 5NF Boyce-Codd Normal Form – BCNF Only those are covered

First Normal Form (1NF) Last Name First Name Last Name First Name 1NF: all attributes are atomic (“no repeating groups”) Last Name First Name Smith Peter Mary John Greg Anne Michael Normalized to 1NF Last Name First Name Smith Peter Mary John Greg Anne Michael Not in 1NF

Second Normal Form (2NF) 1NF and all non-key attributes are fully dependent on the PK (“no partial dependencies”) Not in 2NF Student Course_ID Grade Address Erik CIS331 A 80 Ericsson Av. Sven B 12 Olafson St. Inge C 192 Odin Blvd. Hildur CIS362 212 Reykjavik St.

Second Normal Form (2NF) Student Address Erik 80 Ericsson Av. Sven 12 Olafson St. Inge 192 Freya Blvd. Hildur 212 Reykjavik St. Normalized to 2NF Student Course_ID Grade Erik CIS331 A Sven B Inge C Hildur CIS362

Third Normal Form (3NF) 3NF: 2NF and no transitive dependencies Transitivity: If A  B and B  C, then A  C Not in 3NF Student Course_ID Grade Grade_value Erik CIS331 A 4.00 Sven B 3.00 Inge C 2.00 Hildur CIS362

Third Normal Form (3NF) Normalized to 3NF Student Course_ID Grade Erik CIS331 A Sven B Inge C Hildur CIS362 Grade Grade_value A 4.00 B 3.00 C 2.00 Normalized to 3NF

Normalization: Final Thoughts There are higher normal forms (4NF, 5NF), but we will not talk about them In practice, “normalized” means in BCNF or 3NF Luckily, in practice, ER diagrams lead to normalized tables (but do not rely on luck)

Normalization: summary Why do we normalize? To avoid redundancy (less storage space needed, and data is consistent) To avoid update/delete anomalies A good decomposition should: be a lossless join decomposition (you can recover original tables with a join) preserve dependencies (FD’s should not span two tables) 1NF (all attributes are atomic) 2NF (no partial dependencies) 3NF (no transitive dependencies) Source for the most slides are taken from : Vladimir Vacic, Temple University