Normalization Practice ANS

Slides:



Advertisements
Similar presentations
Normalization of Database
Advertisements

5 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Normalization Dr. Mario Guimaraes. Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints.
Tutorial 6: normalize the following relation to 1NF, 2NF, and 3NF TransIDRentDateCustomerIDLastNamePhoneAddressVideoIDCopy#TitleRent 14/18/043Washington
Jump to first page Normalization Jump to first page Topics n Why normalization is needed n What causes anomalies n What the 4 normal forms are n How.
ERD to Relational Database Model Yong Choi BPA CSUB.
Normalization Practice Yong Choi BPA CSUB. 1NF Customer_IDNameAddressCompany Name 104Mr. Ray Suchecki 123 Pond Hill Road, Detroit, MI, CSUB 624Mr.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Mapping from E-R Model to Relational Model Yong Choi School of Business CSUB.
TM 6-1 Copyright © Addison Wesley Longman, Inc. & Dr. Chen, Business Database Systems Logical Database Design and the Relational Database Professor Chen.
Mapping from Data Model (ERD) to Relational Model Yong Choi School of Business CSUB.
Mapping from Data Model (ERD) to Relational Model
University of Manitoba Asper School of Business 3500 DBMS Bob Travica
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
DBSYSTEMS Chapter 3 Data Normalization Get data properly tabled! Based on G. Post, DBMS: Designing & Building Business Applications University of Manitoba.
Normalization of Database Lecture - ANS Yong Choi School of Business CSUB.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
Unit 4 Object Relational Modeling. Key Concepts Object-Relational Modeling outcomes and process Relational data model Normalization Anomalies Functional.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
Database Design – Lecture 9 Normalization Continued.
Data Analysis Improving Database Design. Normalization The process of transforming a data model into a flexible, stable structure. Reduces anomalies Anomaly.
Normalization MIS335 Database Systems. Why Normalization? Optimizing database structure Removing duplications Accelerating the instructions Data integrity!
Chapter 5.1 and 5.2 Brian Cobarrubia Database Management Systems II January 31, 2008.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 8: Relational.
Logical Database Design and the Relational Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Normalization Hour1,2 Presented & Modified by Mahmoud Rafeek Alfarra.
Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
Chapter 5 MODULE 6: Normalization © 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Prepared by: KIM GASTHIN M. CALIMQUIM.
CCT395, Week 5 Translating ER into Relations; Normalization This presentation is licensed under Creative Commons Attribution License, v To view a.
Chapter 8: Object-Relational Modeling
INLS 623 – Database Normalization
Normalization (Chapter 2)
Chapter 9 Part-1: Concepts & Foreign Keys
Get data properly tabled!
Modern Database Management Jeff Hoffer, Ramesh Venkataraman,
Part IV: Logical Database Design
Chapter 5: Logical Database Design and the Relational Model
Payroll Management System
Introduction to MS Access: creating tables, keys, and relationships
Chapter 5 STUDENT-COURSE
Unit 4: Normalization of Relations
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Module 5: Overview of Normalization
Normalization Practice
Design Theory for Relational Databases
Chapter 9 Part-1: Concepts & Foreign Keys
Third Normal Form (3NF).
Some Normalization Examples
A Normalization Example
ERD to Relational DB Practice
Chapter 9 Part-2: Normalization
Converting from Relational Model to Data Model
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Chapter 8 – Part2 Database Design.
Boyce-Codd Normal Form (BCNF)
Chapter 8 – Part2 Database Design.
The University of Tulsa Professor: Akhilesh Bajaj
Normalization of DB relations examples Fall 2015
Lecture 04 Normalization.
Database Normalization.

Chapter 7a: Overview of Database Design -- Normalization
Normalization Practice
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Some Normalization Examples
Presentation transcript:

Normalization Practice ANS Yong Choi BPA CSUB

1NF Customer_ID Name Street Phone 104 Mr. Ray Suchecki 123 Pond Hill Road, Detroit, MI, 48161 (313) 792-3546 624 Mr. Toby Stein 431 North Phillips Road, South Bend, IN, 46611 (219) 332-4847 627 Mr. Gilbert Scholten 3915 Hawthorne Avenue, Toledo, OH, 43603 (419) 332-2681 Student_ID Advisor Advisor_Office Class_1 Class_2 Class_3 1022 Jones 412 101-07 143-01 159-02 4123 Smith 216 201-01 211-02 214-01

2NF PK

Functional Dependencies in EMPLOYEE2 EmpID CourseTitle DateCompleted Salary DeptName Name Dependency on entire primary key PK PK EmpID  Name, DeptName, Salary Dependency on only part of the key EmpID, CourseTitle  DateCompleted Therefore, NOT in 2nd Normal Form!!

Conversion to 2NF Decomposed into two separate relations Both are full functional dependencies PK EmpID Salary DeptName Name PK PK CourseTitle DateCompleted EmpID

2NF Below table name is “Rental Info” and attributes are in below parenthesis. Arrowed direction shows functional dependency information. Rental Info (TransID, VideoID, Copy#, Title, Rent) Depend only on VideoID Depends on both TransID and VideoID

3NF: Define functional dependencies of below table using a functional dependency notation, then normalize to 3NF PK

3NF PK PK PK

BCNF Project Project_ ID Name Location Manager_ Address Budget PK PK Project_ ID Name Location Manager_ Address Budget Functional Dependencies: Project_ID -> Project_Name | Project_Location | Manager_ID | Project_Budget Manager_ID -> Manager_Name | Manager_Address