DATABASE DESIGN Functional Dependencies. Overview n Functional Dependencies n Normalization –Functional dependencies –Normal forms.

Slides:



Advertisements
Similar presentations
Dr. Alexandra I. Cristea CS 319: Theory of Databases.
Advertisements

Higher Normal Forms By John Nicosia CS 157a Fall 2007.
ICS 321 Fall 2011 Functional Dependencies Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 09/07/20111Lipyeow.
primary key constraint foreign key constraint
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Relational Database Design Algorithms and Further Dependencies.
Manipulating Functional Dependencies Zaki Malik September 30, 2008.
Chapter 11 Functional Dependencies. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.11-2 Topics in this Chapter Basic Definitions Trivial.
CS 440 Database Management Systems Lecture 4: Constraints, Schema Design.
Chapter 3 Notes. 3.1 Functional Dependencies A functional dependency is a statement that – two tuples of a relation that agree on some particular set.
Temple University – CIS Dept. CIS616– Principles of Data Management V. Megalooikonomou Functional Dependencies (based on notes by Silberchatz,Korth, and.
Database Management COP4540, SCS, FIU Functional Dependencies (Chapter 14)
Normalization DB Tuning CS186 Final Review Session.
Normalization DB Tuning CS186 Final Review Session.
Multivalued Dependency Prepared by Tomasz Kaciak CS157A.
FDImplication: 1 Functional Dependencies (FDs) Let r(R) be a relation and let t  r, then the restriction of t to X  R, written t[X], is the projection.
Lossless Decomposition Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Normalization I.
1 Functional Dependency and Normalization Informal design guidelines for relation schemas. Functional dependencies. Normal forms. Normalization.
Dr. Alexandra I. Cristea CS 319: Theory of Databases: C3.
Functional Dependencies Jorge Pombar. Definitions Functional dependencies are the building blocks that enable the analysis of data redundancy and the.
Functional Dependencies CS 186, Spring 2006, Lecture 21 R&G Chapter 19 Science is the knowledge of consequences, and dependence of one fact upon another.
1 Database Theory and Methodology. 2 The Good and the Bad So far we have not developed any measure of “goodness” to measure the quality of the design,
Chapter 14 Advanced Normalization Transparencies © Pearson Education Limited 1995, 2005.
Chapter 8: Relational Database Design First Normal Form First Normal Form Functional Dependencies Functional Dependencies Decomposition Decomposition Boyce-Codd.
Functional Dependencies Prof. Yin-Fu Huang CSIE, NYUST Chapter 11.
Chapter 10 Functional Dependencies and Normalization for Relational Databases.
CS 405G: Introduction to Database Systems 16. Functional Dependency.
FUNCTIONAL DEPENDENCIES
Database Group, Georgia Tech 1 Normalization. Database Group, Georgia Tech 2 Normalization What it’s all about Given a relation, R, and a set of functional.
Normal Forms1. 2 The Problems of Redundancy Redundancy is at the root of several problems associated with relational schemas: Wastes storage Causes problems.
Chapter 13 Normalization Transparencies. 2 Last Class u Access Lab.
Your name here. Improving Schemas and Normalization What are redundancies and anomalies? What are functional dependencies and how are they related to.
Lecture 1 of Advanced Databases Basic Concepts Instructor: Mr.Ahmed Al Astal.
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 10 Functional Dependencies and Normalization for Relational Databases.
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 10 Functional Dependencies and Normalization for Relational Databases.
Logical Database Design (1 of 3) John Ortiz Lecture 6Logical Database Design (1)2 Introduction  The logical design is a process of refining DB schema.
1 Lecture 6: Schema refinement: Functional dependencies
Functional Dependencies. FarkasCSCE 5202 Reading and Exercises Database Systems- The Complete Book: Chapter 3.1, 3.2, 3.3., 3.4 Following lecture slides.
CSC 411/511: DBMS Design Dr. Nan Wang 1 Schema Refinement and Normal Forms Chapter 19.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Deanship of Distance Learning Avicenna Center for E-Learning 1 Session - 7 Sequence - 2 Normalization Functional Dependencies Presented by: Dr. Samir Tartir.
1 Functional Dependencies. 2 Motivation v E/R  Relational translation problems : –Often discover more “detailed” constraints after translation (upcoming.
Functional Dependencies R&G Chapter 19 Science is the knowledge of consequences, and dependence of one fact upon another. Thomas Hobbes ( )
Lecture No 13 Functional Dependencies & Normalization ( II ) Mar 3 rd 2011 Database Systems.
Rensselaer Polytechnic Institute CSCI-4380 – Database Systems David Goldschmidt, Ph.D.
CS 405G: Introduction to Database Systems
Chapter 5.1 and 5.2 Brian Cobarrubia Database Management Systems II January 31, 2008.
Functional Dependencies CIS 4301 Lecture Notes Lecture 8 - 2/7/2006.
Rensselaer Polytechnic Institute CSCI-4380 – Database Systems David Goldschmidt, Ph.D.
MIS 3053 Database Design And Applications The University Of Tulsa Professor: Akhilesh Bajaj Normal Forms Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003.
Lecture 17 4 th Normal Form Prof. Sin-Min Lee Department of Computer Science.
CS 222 Database Management System Spring Lecture 4 Database Design Theory Korra Sathya Babu Department of Computer Science NIT Rourkela.
IST Database Normalization Todd Bacastow IST 210.
CS542 1 Schema Refinement Chapter 19 (part 1) Functional Dependencies.
CS411 Database Systems Kazuhiro Minami 04: Relational Schema Design.
Databases 1 Sixth lecture. 2 Functional Dependencies X -> A is an assertion about a relation R that whenever two tuples of R agree on all the attributes.
© D. Wong Functional Dependencies (FD)  Given: relation schema R(A1, …, An), and X and Y be subsets of (A1, … An). FD : X  Y means X functionally.
Chapter 8 Relational Database Design. 2 Relational Database Design: Goals n Reduce data redundancy (undesirable replication of data values) n Minimize.
1 CS 430 Database Theory Winter 2005 Lecture 8: Functional Dependencies Second, Third, and Boyce-Codd Normal Forms.
Functional Dependencies Quiz. Project Relation Attributes project name – pname start date – start budget customer name – cname customer phone – cphone.
Functional Dependencies and Normalization for Relational Databases 1 Chapter 15 تنبيه : شرائح العرض (Slides) هي وسيلة لتوضيح الدرس واداة من الادوات في.
CSC 411/511: DBMS Design Dr. Nan Wang 1 Schema Refinement and Normal Forms Chapter 19.
Functional Dependency
Normalization Functional Dependencies Presented by: Dr. Samir Tartir
Handout 4 Functional Dependencies
Functional Dependencies
Chapter 19 (part 1) Functional Dependencies
Relational Database Theory
CSC 453 Database Systems Lecture
Presentation transcript:

DATABASE DESIGN Functional Dependencies

Overview n Functional Dependencies n Normalization –Functional dependencies –Normal forms

Functional Dependencies FD n Describes relationship between attributes in a relation. n If two tuples of a table agree on their X value they also agree on their Y value If A and B are attributes of relation R, B is functionally dependent on A (denoted A B ), if each value of A in R is associated with exactly one value of B in R. If A and B are attributes of relation R, B is functionally dependent on A (denoted A B ), if each value of A in R is associated with exactly one value of B in R. n Define all the functional dependencies for the employee data-items

n Inclusion Rule - Given table, T with heading, HEAD(T) –If X and Y sets of attributes contained in HEAD(T), AND then X Y n Trivial Dependency - FD of the form X Y that hold for any T where X, Y HEAD(T) –example - right hand side subset of left side FD Rules

Armstrong’s Axioms + n Reflexivity: If Y is a subset of X, then X Y n Self-determination: Y Y n Transitivity: If X Y and Y Z, the X Y n Augmentation: If X Y, then XZ YZ n Union: If X Y and X Z, then X YZ n Decomposition: If X YZ, then X Y and X Z n Pseudotransivity: If X Y and WY Z, then XW Z n Accumulation: If X YZ and Z BW, then X YZB

Irreducible Sets of FDs n Set, S of FD irreducible iff –right-hand side of every FD in S singleton set –left-hand side of every FD in S irreducible in turn (no determinant can be discarded from the determinant without loosing information –No FD can be discarded from S without changing closure (loosing information)

Review Question n Consider the following two sets of functional dependencies_ F = (A C, AC D, E AD, E H) G = (A CD, E AH) Check whether they are equivalent.