Normalization Practice

Slides:



Advertisements
Similar presentations
Normalization of Database
Advertisements

DB Review Session. ER Diagrams 1 Where does the salary attribute belong? Actor id name address birthday Acted In Movie title type year salary.
Defined by Edgar Codd in 1970 Defined by Edgar Codd in 1970 Considered ingenious but impractical Considered ingenious but impractical Conceptually simple.
PMIT-6102 Advanced Database Systems By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
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.
What are my assignments? Where can I find them? How to organize assignment files? Yong Choi BPA CSUB.
TM 6-1 Copyright © Addison Wesley Longman, Inc. & Dr. Chen, Business Database Systems Logical Database Design and the Relational Database Professor Chen.
Practice of ER modeling
University of Manitoba Asper School of Business 3500 DBMS Bob Travica
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 4 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 4 Normalization.
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.
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.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
Flat file and relational databases Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse.
Data Base Design Steps 1.Define Entity Classes (Relations/Tables) and Keys. 2.Define Relationships between Entity Classes. Normalization Steps Eliminate.
Chapter 8: Object-Relational Modeling
Data Normalization (1) IS240 – DBMS Lecture # 4 –
INLS 623 – Database Normalization
COP5725 Database Management ER DIAGRAM AND RELATIONAL DATA MODEL
ISS/ALT School Copy -- MRS. WOMACK Purpose and Importance
SQL Relational Database Project
Normalization (Chapter 2)
Chapter 9 Part-1: Concepts & Foreign Keys
Get data properly tabled!
Part IV: Logical Database Design
Chapter 5: Logical Database Design and the Relational Model
UNIT -4 NORMALIZATION.
Applicant HR Manager Job Offer Hiring Manager _ ID Name e - Mail
Payroll Management System
Presentation Title Your company information.
Presentation Title Your company information.
Normalization Referential Integrity
Normalization of Database Tables PRESENTED BY TANVEERA AKHTER FOR BCA 2ND YEAR dated:15/09/2015 DEPT. OF COMPUTER SCIENCE.
Entity relationship diagrams
Database Design ERD and Normalisation
Normalization Practice ANS
Chapter 9 Part-1: Concepts & Foreign Keys
Normalization and Databases
Third Normal Form (3NF).
Some Normalization Examples
A Normalization Example
ERD to Relational DB Practice
Chapter 9 Part-2: Normalization
Normalization Edited by: Nada Alhirabi.
Converting from Relational Model to Data Model
Chapter 8 – Part2 Database Design.
Boyce-Codd Normal Form (BCNF)
Chapter 8 – Part2 Database Design.
Normalization of DB relations examples Fall 2015
Database Normalization.
Functions and Relations

Normalization Practice
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Some Normalization Examples
Presentation transcript:

Normalization Practice Yong Choi BPA CSUB

1NF Customer_ID Name Address Company Name 104 Mr. Ray Suchecki PK Customer_ID Name Address Company Name 104 Mr. Ray Suchecki 123 Pond Hill Road, Detroit, MI, 48161 CSUB 624 Mr. Toby Stein 431 North Phillips Road, South Bend, IN, 46611 Bakersfield 627 Mr. Gilbert Scholten 3915 Hawthorne Avenue, Toledo, OH, 43603 BPA PK 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 Using the functional dependency notation, normalize to 2NF PK PK

2NF Dependency on entire primary key EmpID CourseTitle DateCompleted Salary DeptName Name Dependency on entire primary key PK PK Dependency on only part of the key Using the functional dependency notation, normalize to 2NF

2NF Below table name is “Rental Info”. Arrowed direction shows functional dependency information. Normalize to 2NF PK PK Rental Info TransID VideoID Copy# Title Rent

3NF: Normalize to 3NF PK

BCNF Project PK PK Project_ ID Manager_ Dept Lname Budget Location Using the functional dependency notation, normalize to BCNF