Figure 14.1 Simplified version of the
|
|
- Gerald Garrett
- 8 years ago
- Views:
Transcription
1 Figure. Simplified version of the COMPANY relational database schema. EMPLOYEE f.k. ENAME SSN BDATE ADDRESS DNUMBER DEPARTMENT f.k. DNAME DNUMBER DMGRSSN DEPT_LOCATIONS f.k. DNUMBER DLOCATION PROJECT f.k. PNAME PNUMBER PLOCATION DNUM WORKS_ON f.k. SSN f.k. PNUMBER HOURS Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
2 Figure. Example relations for the schema of Figure.. EMPLOYEE ENAME SSN BDATE ADDRESS DNUMBER Zelaya,Alicia J. Wallace,Jennifer S. Narayan,Remesh K. Jabbar,Ahmad V. Borg,James E. DEPARTMENT DNAME DNUMBER DMGRSSN Administration Headquarters WORKS_ON SSN PNUMBER HOURS null Fondren,,TX 68 Voss,,TX Castle,Spring,TX 9 Berry,,TX 97 Fire Oak,Humble,TX 6 Rice,,TX 980 Dallas,,TX 0 Stone,,TX PROJECT DEPT_LOCATIONS DNUMBER DLOCATION PNAME PNUMBER PLOCATION DNUM 0 0 Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
3 Figure. Two relation schemas and their functional dependencies. Both suffer from update anomalies. The EMP_DEPT relation schema. The EMP_PROJ relation schema. EMP_DEPT ENAME SSN BDATE ADDRESS DNUMBER DNAME DMGRSSN EMP_PROJ SSN PNUMBER HOURS ENAME PNAME PLOCATION FD FD FD Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
4 Figure. Example relations for the schemas in Figure. that result from applying NATURAL JOIN to the relations in Figure.. These may be stored as base relations for performance reasons. EMP_DEPT ENAME SSN BDATE ADDRESS DNUMBER DNAME DMGRSSN Zelaya, Alicia J. Wallace,Jennifer S. Narayan,Ramesh K. Jabbar,Ahmad V. Borg,James E Fondren,,TX 68 Voss,,TX Castle,Spring,TX 9 Berry,,TX 97 FireOak,Humble,TX 6 Rice,,TX 980 Dallas,,TX 0 Stone,,TX Administration Administration Administration Headquarters EMP_PROJ SSN PNUMBER HOURS ENAME PNAME PLOCATION null Narayan,Ramesh K. Zelaya,Alicia J. Zelaya,Alicia J. Jabbar,Ahmad V. Jabbar,Ahmad V. Wallace,Jennifer S. Wallace,Jennifer S. Borg,James E. Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
5 Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition EMP_PROJ SSN EMP_LOCS ENAME PNUMBER EMP_PROJ EMP_LOCS PLOCATION HOURS PNAME ENAME PLOCATION Smith, John B. Smith, John B. Narayan, Ramesh K. English, Joyce A. English, Joyce A. Wong, Franklin T. Wong, Franklin T. Wong, Franklin T. Zelaya, Alicia J. Jabbar, Ahmad V. Wallace, Jennifer S. Wallace, Jennifer S. Borg,James E. PLOCATION SSN PNUMBER HOURS PNAME PLOCATION null Product X Product Y Product Z Product X Product Y Product Y Product Z Figure. Alternative (bad) representation of the EMP_PROJ relation. Representing EMP_PROJ of Figure. by two relation schemas: EMP_LOCS and EMP_PROJ. Result of projecting the populated relation EMP_PROJ of Figure. on the attributes of EMP_LOCS and EMP_PROJ.
6 Figure.6 Result of applying the NATURAL JOIN operation to the tuples above dotted lines in EMP_PROJ and EMP_LOCS, with generated spurious tuples marked by an asterisk. SSN PNUMBER HOURS PNAME PLOCATION Narayan,Ramesh K. Narayan,Ramesh K. Narayan,Ramesh K. Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
7 Figure.7 The teach relation state with an apparent functional dependency text COURSE. However, COURSE TEXT is ruled out. TEACH TEACHER COURSE TEXT Smith Smith Hall Brown Data Structures Data Management Compilers Data Structures Bartram Al-Nour Hoffman Augenthaler Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
8 Figure.8 Normalization into NF. Relation schema that is not in NF. Example relation instance. (c) NF relation with redundancy. DEPARTMENT DNAME DNUMBER DMGRSSN DLOCATIONS DEPARTMENT DNAME DNUMBER DMGRSSN DLOCATIONS Administration Headquarters {,, } {} {} (c) DEPARTMENT DNAME DNUMBER DMGRSSN DLOCATION Administration Headquarters Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
9 Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition (c) EMP_PROJ SSN ENAME PNUMBER HOURS EMP_PROJ SSN ENAME EMP_PROJ Narayan,Ramesh K. Zelaya,Alicia J. Jabbar,Ahmad V. Wallace,Jennifer S. Borg,James E. SSN ENAME EMP_PROJ PROJS PNUMBER HOURS SSN PNUMBER HOURS null Figure.9 Normalizing nested relations into NF. Schema of the EMP_PROJ relation with a nested relation PROJS. Example extension of the EMP_PROJ relation showing nested relations within each tuple. (c) Decomposing EMP_PROJ into NF relations EMP_PROJ and EMP_PROJ by propagating the primary key.
10 Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition FD FD FD EMP_DEPT ENAME SSN BDATE ED ED ENAME SSN BDATE EMP_PROJ SSN PNUMBER HOURS ENAME PNAME PLOCATION EP EP SSN PNUMBER HOURS SSN ENAME ADDRESS DNUMBER NF NORMALIZATION FD FD FD EP PNUMBER ADDRESS DNUMBER DNAME DMGRSSN NF NORMALIZATION PNAME PLOCATION DNUMBER DNAME DMGRSSN Figure.0 The normalization process. Normalizing EMP_PROJ into NF relations. Normalizing EMP_DEPT into NF relations.
11 Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition (c) (d) LOTS FD FD LOTS FD FD LOTSA FD FD PROPERTY_ID# COUNTY_NAME LOT# AREA PRICE PROPERTY_ID# COUNTY_NAME LOT# AREA PRICE LOTS COUNTY_NAME FD PROPERTY_ID# COUNTY_NAME LOT# AREA AREA PRICE LOTS LOTS FD TAX_RATE LOTS LOTSA LOTSB LOTS FD FD NF NF NF FD LOTSB TAX_RATE Figure. Normalization to NF and NF. The lots relation schema and its functional dependencies fd through FD. Decomposing lots into the NF relations LOTS and LOTS. (c) Decomposing LOTS into the NF relations LOTSA and LOTSB. (d) Summary of normalization of lots.
12 Figure. Boyce-Codd normal form. BCNF normalization with the dependency of FD being lost in the decomposition. A relation R in NF but not in BCNF. LOTSA FD PROPERTY_ID# COUNTY_NAME LOT# AREA FD FD BCNF Normalization LOTSAX LOTSAY PROPERTY_ID# AREA LOT# AREA COUNTY_NAME R A B C FD FD Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
13 Figure. A relation TEACH that is in NF but not in BCNF. TEACH STUDENT COURSE INSTRUCTOR Narayan Smith Smith Smith Wallace Wallace Wong Zelaya Database Database Operating Systems Theory Database Operating Systems Database Database Mark Navathe Ammar Schulman Mark Ahamad Omiecinski Navathe Addison Wesley Longman, Inc. 000, Elmasri/Navathe, Fundamentals of Database Systems, Third Edition
Relational Normalization: Contents. Relational Database Design: Rationale. Relational Database Design. Motivation
Relational Normalization: Contents Motivation Functional Dependencies First Normal Form Second Normal Form Third Normal Form Boyce-Codd Normal Form Decomposition Algorithms Multivalued Dependencies and
More informationTheory of Relational Database Design and Normalization
Theory of Relational Database Design and Normalization (Based on Chapter 14 and some part of Chapter 15 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3) 1 Informal Design Guidelines for
More informationChapter 10. Functional Dependencies and Normalization for Relational Databases
Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant
More informationFunctional Dependency and Normalization for Relational Databases
Functional Dependency and Normalization for Relational Databases Introduction: Relational database design ultimately produces a set of relations. The implicit goals of the design activity are: information
More informationTheory of Relational Database Design and Normalization
Theory of Relational Database Design and Normalization (Based on Chapter 14 and some part of Chapter 15 in Fundamentals of Database Systems by Elmasri and Navathe) 1 Informal Design Guidelines for Relational
More informationChapter 10 Functional Dependencies and Normalization for Relational Databases
Chapter 10 Functional Dependencies and Normalization for Relational Databases Copyright 2004 Pearson Education, Inc. Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of
More informationLab Assignment 0. 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying over the database with SQL
SS Chung Lab Assignment 0 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying over the database with SQL 1. Creating the COMPANY database schema using SQL (DDL)
More informationRelational Database Design Theory
Relational Database Design Theory Informal guidelines for good relational designs Functional dependencies Normal forms and normalization 1NF, 2NF, 3NF BCNF, 4NF, 5NF Inference rules on functional dependencies
More informationChapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES
1 Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES INFORMAL DESIGN GUIDELINES FOR RELATION SCHEMAS We discuss four informal measures of quality for relation schema design in
More informationChapter 10. Functional Dependencies and Normalization for Relational Databases. Copyright 2007 Ramez Elmasri and Shamkant B.
Chapter 10 Functional Dependencies and Normalization for Relational Databases Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Chapter Outline 1 Informal Design Guidelines for Relational Databases
More informationCOSC344 Database Theory and Applications. Lecture 9 Normalisation. COSC344 Lecture 9 1
COSC344 Database Theory and Applications Lecture 9 Normalisation COSC344 Lecture 9 1 Overview Last Lecture Functional Dependencies This Lecture Normalisation Introduction 1NF 2NF 3NF BCNF Source: Section
More informationRelational Schema. CS 4700/6700 A Sample of Small Database Design Using Microsoft Access
CS 4700/6700 A Sample of Small Database Design Using Microsoft Access Company relational database schema from the textbook (Fundamentals of Database systems, 6 th Edition, by Ramez Elmasri and Shamkant
More informationIntroduction to SQL: Data Retrieving
Introduction to SQL: Data Retrieving Ruslan Fomkin Databasdesign för Ingenjörer 1056F Structured Query Language (SQL) History: SEQUEL (Structured English QUery Language), earlier 70 s, IBM Research SQL
More informationER & EER to Relational Mapping. Chapter 9 1
ER & EER to Relational Mapping Chapter 9 1 Figure 3.2 ER schema diagram for the company database. Fname Minit Lname Number Name Address N 1 WORKS_FOR Name Locations Sex Salary Ssn Bdate EMPLOYEE NumberOfEmployees
More informationChapter 15 Basics of Functional Dependencies and Normalization for Relational Databases
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Outline Informal Design Guidelines
More informationNormalization for Relational DBs
Chapter 7 Functional Dependencies & Normalization for Relational DBs Truong Quynh Chi tqchi@cse.hcmut.edu.vn Spring- 2013 Top-Down Database Design Mini-world Requirements E1 R Relation schemas Conceptual
More informationCSC 443 Data Base Management Systems. Basic SQL
CSC 443 Data Base Management Systems Lecture 6 SQL As A Data Definition Language Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured
More informationCS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University
CS 377 Database Systems Database Design Theory and Normalization Li Xiong Department of Mathematics and Computer Science Emory University 1 Relational database design So far Conceptual database design
More informationSQL-99: Schema Definition, Basic Constraints, and Queries
8 SQL-99: Schema Definition, Basic Constraints, and Queries The SQL language may be considered one of the major reasons for the success of relational databases in the commercial world. Because it became
More information10CS54: DATABASE MANAGEMENT SYSTEM
CS54: DATABASE MANAGEMENT SYSTEM QUESTION BANK Chapter 1: Introduction to Database Systems Objective: Databases and data base system have become an essential component of everyday life in modern society.
More informationSQL Nested & Complex Queries. CS 377: Database Systems
SQL Nested & Complex Queries CS 377: Database Systems Recap: Basic SQL Retrieval Query A SQL query can consist of several clauses, but only SELECT and FROM are mandatory SELECT FROM
More informationPart A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems
CSC 74 Database Management Systems Topic #0: SQL Part A: Data Definition Language (DDL) Spring 00 CSC 74: DBMS by Dr. Peng Ning Spring 00 CSC 74: DBMS by Dr. Peng Ning Schema and Catalog Schema A collection
More informationSchema Refinement, Functional Dependencies, Normalization
Schema Refinement, Functional Dependencies, Normalization MSCI 346: Database Systems Güneş Aluç, University of Waterloo Spring 2015 MSCI 346: Database Systems Chapter 19 1 / 42 Outline 1 Introduction Design
More informationDatabase Management System
UNIT -6 Database Design Informal Design Guidelines for Relation Schemas; Functional Dependencies; Normal Forms Based on Primary Keys; General Definitions of Second and Third Normal Forms; Boyce-Codd Normal
More informationCHAPTER 8: SQL-99: SCHEMA DEFINITION, BASIC CONSTRAINTS, AND QUERIES
Chapter 8: SQL-99: Schema Definition, Basic Constraints, and Queries 1 CHAPTER 8: SQL-99: SCHEMA DEFINITION, BASIC CONSTRAINTS, AND QUERIES Answers to Selected Exercises 8. 7 Consider the database shown
More informationThe Relational Algebra
The Relational Algebra Relational set operators: The data in relational tables are of limited value unless the data can be manipulated to generate useful information. Relational Algebra defines the theoretical
More informationNormalization in OODB Design
Normalization in OODB Design Byung S. Lee Graduate Programs in Software University of St. Thomas St. Paul, Minnesota bslee@stthomas.edu Abstract When we design an object-oriented database schema, we need
More informationAdvanced Database Models
Advanced Database Models Dr.-Ing. Eike Schallehn OvG Universität Magdeburg Fakultät für Informatik Institut für Technische und Betriebliche Informationssysteme 2015 Organization Lecture slides http://wwwiti.cs.uni-magdeburg.de/iti_db/lehre/adbm
More informationChapter 8. SQL-99: SchemaDefinition, Constraints, and Queries and Views
Chapter 8 SQL-99: SchemaDefinition, Constraints, and Queries and Views Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database
More informationPart 4: Database Language - SQL
Part 4: Database Language - SQL Junping Sun Database Systems 4-1 Database Languages and Implementation Data Model Data Model = Data Schema + Database Operations + Constraints Database Languages such as
More informationb. Examine the following histories. Draw their serialization graph and identify which of them is serializable given reasons.
SELECTED SOLUTIONS TO THE EVISION EECISES: 1. In the following questions the operations are as follows rn() transaction n reads data item, wn () transaction n writes data item, cn transactions n commits,
More informationLab Manual. Database Systems COT-313 & Database Management Systems Lab IT-216
Lab Manual Database Systems COT-313 & Database Management Systems Lab IT-216 Lab Instructions Several practicals / programs? Whether an experiment contains one or several practicals /programs One practical
More informationCS 338 Join, Aggregate and Group SQL Queries
CS 338 Join, Aggregate and Group SQL Queries Bojana Bislimovska Winter 2016 Outline SQL joins Aggregate functions in SQL Grouping in SQL HAVING clause SQL Joins Specifies a table resulting from a join
More informationCSCI-GA.2433-001 Database Systems Lecture 7: Schema Refinement and Normalization
CSCI-GA.2433-001 Database Systems Lecture 7: Schema Refinement and Normalization Mohamed Zahran (aka Z) mzahran@cs.nyu.edu http://www.mzahran.com View 1 View 2 View 3 Conceptual Schema At that point we
More informationDesign Theory for Relational Databases: Functional Dependencies and Normalization
Design Theory for Relational Databases: Functional Dependencies and Normalization Juliana Freire Some slides adapted from L. Delcambre, R. Ramakrishnan, G. Lindstrom, J. Ullman and Silberschatz, Korth
More informationSummary on Chapter 4 Basic SQL
Summary on Chapter 4 Basic SQL SQL Features Basic SQL DDL o Includes the CREATE statements o Has a comprehensive set of SQL data types o Can specify key, referential integrity, and other constraints Basic
More informationDatabase Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB
Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an
More informationIntroduction to Database Systems. Normalization
Introduction to Database Systems Normalization Werner Nutt 1 Normalization 1. Anomalies 1. Anomalies 2. Boyce-Codd Normal Form 3. 3 rd Normal Form 2 Anomalies The goal of relational schema design is to
More informationDatabase Design and Normalization
Database Design and Normalization CPS352: Database Systems Simon Miner Gordon College Last Revised: 9/27/12 Agenda Check-in Functional Dependencies (continued) Design Project E-R Diagram Presentations
More informationDATABASE NORMALIZATION
DATABASE NORMALIZATION Normalization: process of efficiently organizing data in the DB. RELATIONS (attributes grouped together) Accurate representation of data, relationships and constraints. Goal: - Eliminate
More informationFunctional Dependencies and Finding a Minimal Cover
Functional Dependencies and Finding a Minimal Cover Robert Soulé 1 Normalization An anomaly occurs in a database when you can update, insert, or delete data, and get undesired side-effects. These side
More informationCarnegie Mellon Univ. Dept. of Computer Science 15-415 - Database Applications. Overview - detailed. Goal. Faloutsos CMU SCS 15-415
Faloutsos 15-415 Carnegie Mellon Univ. Dept. of Computer Science 15-415 - Database Applications Lecture #17: Schema Refinement & Normalization - Normal Forms (R&G, ch. 19) Overview - detailed DB design
More information{ PreviousEducation ( CollegeName, StartDate, EndDate, { Degree (DegreeName, Month, Year) }, { Transcript (CourseName, Semester, Year, Grade) } ) }
Tutorial 3 Solution Exercise1: Exercise 2: { PreviousEducation ( CollegeName, StartDate, EndDate, { Degree (DegreeName, Month, Year) }, { Transcript (CourseName, Semester, Year, Grade) } ) } Exercise 3:
More informationCS143 Notes: Normalization Theory
CS143 Notes: Normalization Theory Book Chapters (4th) Chapters 7.1-6, 7.8, 7.10 (5th) Chapters 7.1-6, 7.8 (6th) Chapters 8.1-6, 8.8 INTRODUCTION Main question How do we design good tables for a relational
More informationDatabase Theory, Fall Semester MMXV: Week #3
Database Theory, Fall Semester MMXV: Week #3 Any Questions on anything from last week? Which relational operators did I call basic? Why did I distinguish between basic and defined operators? If you haven
More informationHow To Use The Database In Jdbc.Com On A Microsoft Gdbdns.Com (Amd64) On A Pcode (Amd32) On An Ubuntu 8.2.2 (Amd66) On Microsoft
CS 7700 Transaction Design for Microsoft Access Database with JDBC Purpose The purpose of this tutorial is to introduce the process of developing transactions for a Microsoft Access Database with Java
More informationTeaching Database Modeling and Design: Areas of Confusion and Helpful Hints
Journal of Information Technology Education Volume 6, 2007 Teaching Database Modeling and Design: Areas of Confusion and Helpful Hints George C. Philip, Ph. D. College of Business, The University of Wisconsin
More informationRelational Database Design: FD s & BCNF
CS145 Lecture Notes #5 Relational Database Design: FD s & BCNF Motivation Automatic translation from E/R or ODL may not produce the best relational design possible Sometimes database designers like to
More informationNew York University Computer Science Department Courant Institute of Mathematical Sciences
New York University Computer Science Department Courant Institute of Mathematical Sciences Homework #5 Solutions Course Title: Database Systems Instructor: Jean-Claude Franchitti Course Number: CSCI-GA.2433-001
More informationChapter 7: Relational Database Design
Chapter 7: Relational Database Design Pitfalls in Relational Database Design Decomposition Normalization Using Functional Dependencies Normalization Using Multivalued Dependencies Normalization Using Join
More informationIntroduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 5: Normalization II; Database design case studies. September 26, 2005
Introduction to Databases, Fall 2005 IT University of Copenhagen Lecture 5: Normalization II; Database design case studies September 26, 2005 Lecturer: Rasmus Pagh Today s lecture Normalization II: 3rd
More informationC# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London.. 1 21.01 20 2 23.01 2 Martin Paris.. 1 26.10 25 3 Deen London.. 2 29.
4. Normalisation 4.1 Introduction Suppose we are now given the task of designing and creating a database. How do we produce a good design? What relations should we have in the database? What attributes
More informationFundamentals of Database Systems. Laboratory Manual 1. Rajshekhar Sunderraman. Georgia State University. August 2010
Fundamentals of Database Systems Laboratory Manual 1 Rajshekhar Sunderraman Georgia State University August 2010 1 To accompany Elmasri and Navathe, Fundamentals of Database Systems, 6 th Edition, Addison-Wesley,
More informationFunctional Dependencies
BCNF and 3NF Functional Dependencies Functional dependencies: modeling constraints on attributes stud-id name address course-id session-id classroom instructor Functional dependencies should be obtained
More informationfeaturing data privacy Andres Avelino Campos Sainz A Project submitted in partial fulfillment of the requirements for the degree of
An application to provide an interface to a mysql database located in the cloud featuring data privacy by Andres Avelino Campos Sainz A Project submitted in partial fulfillment of the requirements for
More informationFunctional Dependencies and Normalization
Functional Dependencies and Normalization 5DV119 Introduction to Database Management Umeå University Department of Computing Science Stephen J. Hegner hegner@cs.umu.se http://www.cs.umu.se/~hegner Functional
More informationDatabase Management Systems
Database Management Systems 1. Introduction Introduction; An example; Characteristics of Database approach; Actors on the screen; Workers behind the scene; Advantages of using DBMS approach; A brief history
More informationLecture 2 Normalization
MIT 533 ระบบฐานข อม ล 2 Lecture 2 Normalization Walailuk University Lecture 2: Normalization 1 Objectives The purpose of normalization The identification of various types of update anomalies The concept
More informationSchema Refinement and Normalization
Schema Refinement and Normalization Module 5, Lectures 3 and 4 Database Management Systems, R. Ramakrishnan 1 The Evils of Redundancy Redundancy is at the root of several problems associated with relational
More informationVIEWS virtual relation data duplication consistency problems
VIEWS A virtual relation that is defined from other preexisting relations Called the defining relations of the view A view supports multiple user perspectives on the database corresponding to different
More informationElena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Physical Design. Phases of database design. Physical design: Inputs.
Phases of database design Application requirements Conceptual design Database Management Systems Conceptual schema Logical design ER or UML Physical Design Relational tables Logical schema Physical design
More informationNormalization. CIS 331: Introduction to Database Systems
Normalization CIS 331: Introduction to Database Systems Normalization: Reminder Why do we need to normalize? To avoid redundancy (less storage space needed, and data is consistent) To avoid update/delete
More informationDesign of Relational Database Schemas
Design of Relational Database Schemas T. M. Murali October 27, November 1, 2010 Plan Till Thanksgiving What are the typical problems or anomalies in relational designs? Introduce the idea of decomposing
More informationRelational Database Design
Relational Database Design To generate a set of relation schemas that allows - to store information without unnecessary redundancy - to retrieve desired information easily Approach - design schema in appropriate
More informationBoyce-Codd Normal Form
4NF Boyce-Codd Normal Form A relation schema R is in BCNF if for all functional dependencies in F + of the form α β at least one of the following holds α β is trivial (i.e., β α) α is a superkey for R
More informationDATABASE SYSTEMS. Chapter 7 Normalisation
DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation 1 (Rob, Coronel & Crockett 978184480731) In this chapter, you will learn: What normalization
More informationAnnouncements. SQL is hot! Facebook. Goal. Database Design Process. IT420: Database Management and Organization. Normalization (Chapter 3)
Announcements IT0: Database Management and Organization Normalization (Chapter 3) Department coin design contest deadline - February -week exam Monday, February 1 Lab SQL SQL Server: ALTER TABLE tname
More informationSchema Design and Normal Forms Sid Name Level Rating Wage Hours
Entity-Relationship Diagram Schema Design and Sid Name Level Rating Wage Hours Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke 1 Database Management Systems, 2 nd Edition. R. Ramakrishnan
More informationCity University of Hong Kong. Information on a Course offered by Department of Computer Science with effect from Semester A in 2014 / 2015
City University of Hong Kong Information on a Course offered by Department of Computer Science with effect from Semester A in 2014 / 2015 Part I Course Title: Database Systems Course Code: CS3402 Course
More informationNormalization in Database Design
in Database Design Marek Rychly mrychly@strathmore.edu Strathmore University, @ilabafrica & Brno University of Technology, Faculty of Information Technology Advanced Databases and Enterprise Systems 14
More informationNormal forms and normalization
Normal forms and normalization An example of normalization using normal forms We assume we have an enterprise that buys products from different supplying companies, and we would like to keep track of our
More informationCh. 7. Relational Model Concepts
Ch. 7. Relational Model Concepts DOMAIN: D is a set of atomic values. USA_Phone_Numbers: set of 10-digit phone numbers valid in USA Valid_Age: 0 to 150 Grade_Point_Averages: real numbers between 0 and
More informationNormalization of database model. Pazmany Peter Catholic University 2005 Zoltan Fodroczi
Normalization of database model Pazmany Peter Catholic University 2005 Zoltan Fodroczi Closure of an attribute set Given a set of attributes α define the closure of attribute set α under F (denoted as
More informationScheme G. Sample Test Paper-I
Scheme G Sample Test Paper-I Course Name : Computer Engineering Group Course Code : CO/CM/IF/CD/CW Marks : 25 Hours: 1 Hrs. Q.1 Attempt Any THREE. 09 Marks a) List any six applications of DBMS. b) Define
More informationSQL DDL. DBS Database Systems Designing Relational Databases. Inclusion Constraints. Key Constraints
DBS Database Systems Designing Relational Databases Peter Buneman 12 October 2010 SQL DDL In its simplest use, SQL s Data Definition Language (DDL) provides a name and a type for each column of a table.
More informationMCQs~Databases~Relational Model and Normalization http://en.wikipedia.org/wiki/database_normalization
http://en.wikipedia.org/wiki/database_normalization Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy. Normalization usually involves
More informationNormalisation to 3NF. Database Systems Lecture 11 Natasha Alechina
Normalisation to 3NF Database Systems Lecture 11 Natasha Alechina In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third Normal Forms For more
More informationChapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.
Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS
More informationChapter 9: Normalization
Chapter 9: Normalization Part 1: A Simple Example Part 2: Another Example & The Formal Stuff A Problem: Keeping Track of Invoices (cont d) Suppose we have some invoices that we may or may not want to refer
More informationPart 6. Normalization
Part 6 Normalization Normal Form Overview Universe of All Data Relations (normalized / unnormalized 1st Normal Form 2nd Normal Form 3rd Normal Form Boyce-Codd Normal Form (BCNF) 4th Normal Form 5th Normal
More informationWhy Is This Important? Schema Refinement and Normal Forms. The Evils of Redundancy. Functional Dependencies (FDs) Example (Contd.)
Why Is This Important? Schema Refinement and Normal Forms Chapter 19 Many ways to model a given scenario in a database How do we find the best one? We will discuss objective criteria for evaluating database
More informationNormalization of Database
Normalization of Database UNIT-4 Database Normalisation is a technique of organizing the data in the database. Normalization is a systematic approach of decomposing tables to eliminate data redundancy
More informationMore SQL: Assertions, Views, and Programming Techniques
9 More SQL: Assertions, Views, and Programming Techniques In the previous chapter, we described several aspects of the SQL language, the standard for relational databases. We described the SQL statements
More informationIT2304: Database Systems 1 (DBS 1)
: Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation
More informationTopic 5.1: Database Tables and Normalization
Topic 5.1: Database Tables and Normalization What is Normalization? Normalization is a process for evaluating and correcting table structures to minimize data redundancies, thereby helping to eliminate
More informationDatabase Design and Normal Forms
Database Design and Normal Forms Database Design coming up with a good schema is very important How do we characterize the goodness of a schema? If two or more alternative schemas are available how do
More informationChapter 7: Relational Database Design
Chapter 7: Relational Database Design Database System Concepts, 5th Ed. See www.db book.com for conditions on re use Chapter 7: Relational Database Design Features of Good Relational Design Atomic Domains
More informationDatabases -Normalization III. (N Spadaccini 2010 and W Liu 2012) Databases - Normalization III 1 / 31
Databases -Normalization III (N Spadaccini 2010 and W Liu 2012) Databases - Normalization III 1 / 31 This lecture This lecture describes 3rd normal form. (N Spadaccini 2010 and W Liu 2012) Databases -
More informationWeek 11: Normal Forms. Logical Database Design. Normal Forms and Normalization. Examples of Redundancy
Week 11: Normal Forms Database Design Database Redundancies and Anomalies Functional Dependencies Entailment, Closure and Equivalence Lossless Decompositions The Third Normal Form (3NF) The Boyce-Codd
More informationDatabase Systems Concepts, Languages and Architectures
These slides are for use with Database Systems Concepts, Languages and Architectures Paolo Atzeni Stefano Ceri Stefano Paraboschi Riccardo Torlone To view these slides on-screen or with a projector use
More information6.830 Lecture 3 9.16.2015 PS1 Due Next Time (Tuesday!) Lab 1 Out today start early! Relational Model Continued, and Schema Design and Normalization
6.830 Lecture 3 9.16.2015 PS1 Due Next Time (Tuesday!) Lab 1 Out today start early! Relational Model Continued, and Schema Design and Normalization Animals(name,age,species,cageno,keptby,feedtime) Keeper(id,name)
More informationRELATIONAL DATABASE DESIGN
RELATIONAL DATABASE DESIGN g Good database design - Avoiding anomalies g Functional Dependencies g Normalization & Decomposition Using Functional Dependencies g 1NF - Atomic Domains and First Normal Form
More informationChapter 8. Database Design II: Relational Normalization Theory
Chapter 8 Database Design II: Relational Normalization Theory The E-R approach is a good way to start dealing with the complexity of modeling a real-world enterprise. However, it is only a set of guidelines
More informationDatabase Management System Case Studies
Database Management System Case Studies Case Study 1 Hospital Management System Aim: XYZ hospital is a multi specialty hospital that includes a number of departments, rooms, doctors, nurses, compounders,
More informationNormalization. Normalization. First goal: to eliminate redundant data. for example, don t storing the same data in more than one table
Normalization Normalization Purpose Redundancy and Data Anomalies 1FN: First Normal Form 2FN: Second Normal Form 3FN: Thrird Normal Form Examples 1 Normalization Normalization is the process of efficiently
More informationIntroduction to Databases
Introduction to Databases IT University of Copenhagen January 7, 2005 This exam consists of 6 problems with a total of 16 questions. The weight of each problem is stated. You have 4 hours to answer all
More informationUnit 3.1. Normalisation 1 - V2.0 1. Normalisation 1. Dr Gordon Russell, Copyright @ Napier University
Normalisation 1 Unit 3.1 Normalisation 1 - V2.0 1 Normalisation Overview discuss entity integrity and referential integrity describe functional dependency normalise a relation to first formal form (1NF)
More informationLecture Notes on Database Normalization
Lecture Notes on Database Normalization Chengkai Li Department of Computer Science and Engineering The University of Texas at Arlington April 15, 2012 I decided to write this document, because many students
More informationDatabase Constraints and Design
Database Constraints and Design We know that databases are often required to satisfy some integrity constraints. The most common ones are functional and inclusion dependencies. We ll study properties of
More informationThere are five fields or columns, with names and types as shown above.
3 THE RELATIONAL MODEL Exercise 3.1 Define the following terms: relation schema, relational database schema, domain, attribute, attribute domain, relation instance, relation cardinality, andrelation degree.
More information