* 07/16/96 Normalization 2/16/2019 *.

Slides:



Advertisements
Similar presentations
1 Week 4: Normalisation: Redundant data becomes inconsistent data; therefore … “The key, the whole key, and nothing but the key,so help me, Codd”
Advertisements

Puppy Project Normalization. Un-normalized Data Items Puppy Number Puppy Name Kennel Code Kennel Name Kennel Location Trick ID 1  n Trick Name 1  n.
Chapter 8 Normalization. © 2001 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Outline Modification anomalies Functional dependencies.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9 Advanced Query Formulation with SQL.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 7 Normalization of Relational Tables.
7-1 Normalization - Outline  Modification anomalies  Functional dependencies  Major normal forms  Practical concerns.
Chapter 9 Advanced Query Formulation with SQL. Outline Outer join problems Type I nested queries Type II nested queries and difference problems Nested.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 3 The Relational Data Model.
7 Copyright © 2006, Oracle. All rights reserved. Normalization of Relational Tables (Part I)
SQL - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Lecture 12 Inst: Haya Sammaneh
Avoiding Database Anomalies
Concepts of Database Management Sixth Edition Chapter 5 Database Design 1: Normalization.
Concepts of Database Management, Fifth Edition
Chapter 7 Normalization. Outline Modification anomalies Functional dependencies Major normal forms Relationship independence Practical concerns.
Chapter 7 Normalization. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Modification anomalies Functional dependencies.
Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Chapter 3 The Relational.
Chapter 2 The Relational Data Model. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Relational model basics Integrity.
Chapter 10 Application Development with Views. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Background Creating.
2Object-Oriented Analysis and Design with the Unified Process Objectives  Describe the differences and similarities between relational and object-oriented.
Chapter 3 Query Formulation with SQL. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Background Getting started.
1 5 Normalization. 2 5 Database Design Give some body of data to be represented in a database, how do we decide on a suitable logical structure for that.
Advanced Query Formulation with SQL. 9-2 Outline  Outer join problems  Type I nested queries  Type II nested queries and difference problems  Nested.
Chapter 9 Advanced Query Formulation with SQL. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Outer join problems.
9 Advanced Query Formulation with SQL (Chapter 9).
Lecture No 14 Functional Dependencies & Normalization ( III ) Mar 04 th 2011 Database Systems.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Query Formulation with SQL.
1 5 Chapter 5 Database Design 1: Some Normalization Examples Spring 2006.
SQL – Simple Queries and JOIN MGMT 360 Database Management.
Normalization Data Design - Mr. Ahmad Al-Ghoul
Concepts of Database Management Seventh Edition Chapter 5 Database Design 1: Normalization.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 10 Application Development with Views.
Microsoft Access 2010 Chapter 11 Database Design.
Chapter 3 Query Formulation with SQL. Outline Background Getting started Joining tables Summarizing tables Reasoning tools Advanced problems Data manipulation.
Slide 1Chapter 9: Advanced Query Formulation with SQL Database Design, Application Development, and Administration, 5 th Edition Copyright © 2011 by Michael.
7 Copyright © 2006, Oracle. All rights reserved. Normalization of Relational Tables (Part II)
Chapter 2 The Relational Data Model. Outline Relational model basics Integrity rules Rules about referenced rows Relational Algebra.
A Guide to SQL, Eighth Edition
Application Development with Views
SEEM3430: Information Systems Analysis and Design
MIS 322 – Enterprise Business Process Analysis
Normal Forms.
Developing Data Models – Conversion Rules
Chapter 11 Database Design
Relational Model and ER Model: in a Nutshell
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Concepts of Database Management Eighth Edition
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Database Normalization
Chapter 6 Normalization of Database Tables
Normalization – Part II
Some Normalization Examples
A Normalization Example
CS 3630 Database Design and Implementation
Chapter 8 – Part2 Database Design.
Boyce-Codd Normal Form (BCNF)
Chapter 8 – Part2 Database Design.
A relation is in first normal form if it does not contain repeating groups.
System Analysis and Design
Normalization of DB relations examples Fall 2015
Sampath Jayarathna Cal Poly Pomona
NORMALIZATION FIRST NORMAL FORM (1NF):
Lecture 04 Normalization.
Chapter 14 Normalization Pearson Education © 2009.
Shelly Cashman: Microsoft Access 2016
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Some Normalization Examples
Presentation transcript:

* 07/16/96 Normalization 2/16/2019 *

Unnormalized Table University Course No Course Desc StdSSN StdCity * 07/16/96 Unnormalized Table University Course No Course Desc StdSSN StdCity StdClass OfferNo OffTerm OffYear Grade Jun O1 O2 O3 Fall Winter 2000 3.5 3.3 3.1 3.4 S1 S2 C1 C2 Co1 Co2 Co3 DB VB OO 2/16/2019 *

Relations Unnormalized * 07/16/96 Relations Unnormalized UNIVERSITY(StdSSN, StdCity, StdClass, (OfferNo, OffYear, Grade, CourseNo, CrsDesc)) 1NF UNIVERSITY(StdSSN, StdCity, StdClass, OfferNo, OffYear, Grade, CourseNo, CrsDesc) 2/16/2019 *

Conversion to 1NF No repeating group * 07/16/96 Conversion to 1NF No repeating group Primary key will expand in converting a non-1NF table to 1NF 2/16/2019 *

* 07/16/96 Second Normal form 1 NF. If every nonkey column is dependent on the whole key, not part of the key. UNIVERSITY(StdSSN, StdCity, StdClass, OfferNo, OffYear, Grade, CourseNo, CrsDesc) 2/16/2019 *

Functional Dependencies * 07/16/96 Functional Dependencies StdSSN, OfferNo -> Grade StdSSN -> StdCity, StdClass OfferNo -> OffTerm, OffYear, CourseNo, CrsDesc CourseNo -> CrsDesc 2/16/2019 *

2NF conversion Split into 3 Tables: Student(StdSSN, StdCity, StdClass) * 07/16/96 2NF conversion Split into 3 Tables: Student(StdSSN, StdCity, StdClass) Offer(OfferNo, OffTerm, OffYear, CourseNo, CrsDesc) Grade (StdSSN, OfferNo, Grade) 2/16/2019 *

Third Normal Form 2NF, Determinants are the candidate keys. * 07/16/96 Third Normal Form 2NF, Determinants are the candidate keys. Offer(OfferNo, OffTerm, OffYear, CourseNo, CrsDesc) CourseNo -> CrsDesc Split into two: Courses(CourseNo, CrsDesc) 2/16/2019 *

3NF Tables Courses(CourseNo, CrsDesc) * 07/16/96 3NF Tables Student(StdSSN, StdCity, StdClass) Offer(OfferNo, OffTerm, OffYear, CourseNo) Courses(CourseNo, CrsDesc) Grade (StdSSN, OfferNo, Grade) 2/16/2019 *

Decomposition of 1NF Table into 2NF Tables * Decomposition of 1NF Table into 2NF Tables 07/16/96 CatalogID ProductID Price Special Price CatalogIssueDate 23 1244 1245 1246 1247 1248 1249 1252 1253 1254 1257 15.00 15 14 21 24 19 12 13 11.20 16.80 16.40 19.20 15.20 8/1/2008 2/16/2019 *

Decomposition of 1NF Table into 2NF Tables * Decomposition of 1NF Table into 2NF Tables 07/16/96 IssueDate is determined by CatalogID alone, not by both CatalogID and ProductID 2/16/2019 *

Conversion of 2NF Table into 3NF Tables * 07/16/96 Conversion of 2NF Table into 3NF Tables ZipCode determines the value for State, and ZipCode is not the key to the table 2/16/2019 *