Distributed Database Management System

Slides:



Advertisements
Similar presentations
Functional Dependencies and Normalization for Relational Databases
Advertisements

Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Relational Database Design Algorithms and Further Dependencies.
Announcements Read 6.1 – 6.3 for Wednesday Project Step 3, due now Homework 5, due Friday 10/22 Project Step 4, due Monday Research paper –List of sources.
Defined by Edgar Codd in 1970 Defined by Edgar Codd in 1970 Considered ingenious but impractical Considered ingenious but impractical Conceptually simple.
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.
Functional Dependencies and Normalization for Relational Databases.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
1 Functional Dependency and Normalization Informal design guidelines for relation schemas. Functional dependencies. Normal forms. Normalization.
Ch 7: Normalization-Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Chapter 10 Functional Dependencies and Normalization for Relational Databases.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide DESIGNING A SET OF RELATIONS (2) Goals: Lossless join property (a must). Dependency.
Functional Dependencies and Normalization for Relational Databases.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 11 Relational Database Design Algorithms and Further Dependencies.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Design Process - Where are we?
Normalization MIS335 Database Systems. Why Normalization? Optimizing database structure Removing duplications Accelerating the instructions Data integrity!
Normalization.
Ch 7: Normalization-Part 1
Relational Database Design Algorithms and Further Dependencies.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Relational Data Model, Review Relation Tuple Attribute Domains Candidate key, primary key Key attribute, non-key attribute.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
4NF & MULTIVALUED DEPENDENCY By Kristina Miguel. Review  Superkey – a set of attributes which will uniquely identify each tuple in a relation  Candidate.
1 CS122A: Introduction to Data Management Lecture #13: Relational DB Design Theory (II) Instructor: Chen Li.
10/3/2017.
COP 6726: New Directions in Database Systems
Relational Normalization Theory
Normalization Database Management Systems, 3rd ed., Ramakrishnan and Gehrke, Chapter 19.
Functional Dependency and Normalization
Chapter 15 Relational Design Algorithms and Further Dependencies
Schedule Today: Next After that Normal Forms. Section 3.6.
Gergely Lukács Pázmány Péter Catholic University
Chapter 2: Relational Model
Functional Dependencies and Normalization for Relational Databases
Higher Forms of Normalization
CS411 Database Systems 08: Midterm Review Kazuhiro Minami 1.
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Functional Dependencies and Normalization for RDBs
Normal Forms.
Database Design Dr. M.E. Fayad, Professor
Chapter 3: Intro to Relational Model
ER Modeling Exercise Consider a set of courses, both at grad and undergrad level. Each course has at least one section. Each section is taught by only.
Normal forms First Normal Form (1NF) Second Normal Form (2NF)
Chapter 2: Intro to Relational Model
Normalization Introduction & 1NF Presented by: Dr. Samir Tartir
Chapter 2: Intro to Relational Model
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
11/12/2018.
Data Base System Lecture 6: Relational Model
Functional Dependencies and Normalization for Relational Databases
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Database Management systems Subject Code: 10CS54 Prepared By:
Normalization Murali Mani.
Table Normal Forms.
Distributed Database Management System
Multivalued Dependencies & Fourth Normal Form
Multivalued Dependencies & Fourth Normal Form
Normalization.
The Relational Model Transparencies
Normalization DB Design Guidelines Presented by: Dr. Samir Tartir
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Chapter 4 The Relational Model Pearson Education © 2009.
Schema Refinement and Normal Forms
Chapter 4 The Relational Model Pearson Education © 2009.
Relational Database Design
Chapter Outline 1 Informal Design Guidelines for Relational Databases
Database Design Dr. M.E. Fayad, Professor
Chapter 3 The Relational Model
Presentation transcript:

Distributed Database Management System Lecture 05

Virtual University of Pakistan Data Model A set of tools/ constructs used to model a database Record/Semantic Virtual University of Pakistan

Virtual University of Pakistan Legacy Data Models Hierarchical Network Relational Virtual University of Pakistan

Virtual University of Pakistan Relational Data Model Two major Strengths Three Components Relational databases based on relational Data Model Virtual University of Pakistan

Virtual University of Pakistan A relation R defined over domains D1, D2, …., Dn is a set of n-tuples, <d1, d2, …, dn> such that <d1 D1……, dnDn Virtual University of Pakistan

Virtual University of Pakistan Schemes in RDB EMP(eNo, eName, eTitle, eSal, pNo, eResp, pDur) PROJ(pNo, pName, bud) Virtual University of Pakistan

Virtual University of Pakistan Each of the attribute in these two relations has a domain, like… Domains need not to be distinct Virtual University of Pakistan

Keys

Virtual University of Pakistan Primary Key Minimum nonempty subset of a relation whose values uniquely identify each tuple in relation Virtual University of Pakistan

Virtual University of Pakistan The superset of the key is super key, like… We also have candidate, alternate, secondary, foreign Virtual University of Pakistan

Table

Virtual University of Pakistan Relation represented in a two dimensional form eDur eResp pNo eSal eTitle eName eNo EMP pBud pName pNo PROJ Virtual University of Pakistan

Virtual University of Pakistan eDur eResp pNo eSal eTitle eName eNo E01 E03 E05 E06 E07 E08 Naeem Rahila Narjis Aslam Hafeez Liaqat Supr Desin Prog Eng Anlyst 500 700 850 900 P1 P2 P3 Work Mangr Cons 12 7 15 10 Virtual University of Pakistan

Virtual University of Pakistan After defining a relation’s scheme, it is populated Tuples are rows and attributes are cols Virtual University of Pakistan

Virtual University of Pakistan Attributes get values from same domain Can have NULL value, but…. Virtual University of Pakistan

Virtual University of Pakistan Normalization Step-by-step reversible process to produce anomalies free smarter tables Virtual University of Pakistan

Virtual University of Pakistan Anomalies Types…. Major step is decomposition Universal Relation approach Virtual University of Pakistan

Virtual University of Pakistan Three Normal Forms BCNF Lossless decomposition Dependency preservation Virtual University of Pakistan

Virtual University of Pakistan Dependency Structure Norm. based on dependencies Up to BCNF on FDs MVD and P-JD Virtual University of Pakistan

Virtual University of Pakistan Dependencies A relation R defined on attributes A(A1, A2, …., An), if XA, YA, if for each value of X Virtual University of Pakistan

Virtual University of Pakistan there is a unique value in Y, then X functionally determines Y, X Y Virtual University of Pakistan

Virtual University of Pakistan If X Y and there is a ZX and ZY, then X partially determines Y or Y is partially dependent on X Virtual University of Pakistan

Virtual University of Pakistan A relation R defined on attributes A(A1, A2, …., An), if XA, YA, ZA, if for each value of X, there is Virtual University of Pakistan

Virtual University of Pakistan there is unique value of (Y,Z) pair and Z depends only on X then X multidetermines Z, X Z Virtual University of Pakistan

Virtual University of Pakistan P-J Dependency A relation R defined on attributes A(A1, A2, …., An), if XA, YA, ZA, if R is equal to join of X, Y and Z then (X, Y, Z) constitute project-join dependency for R Virtual University of Pakistan

Virtual University of Pakistan 1NF, attributes have only atomic values 2NF, there are no partial dependencies 3NF, for each XY where Y is not in X, either X is a superkey of R or Y is prime attribute Virtual University of Pakistan