CSCI 6315 Applied Database Systems – Exercise (5)

Slides:



Advertisements
Similar presentations
Schema Refinement: Normal Forms
Advertisements

Normalization 1 Instructor: Mohamed Eltabakh Part II.
Normalization Decomposition techniques for ensuring: Lossless joins Dependency preservation Redundancy avoidance We will look at some normal forms: Boyce-Codd.
CS 440 Database Management Systems Practice problems for normalization.
Review for Final Exam Lecture Week 14. Problems on Functional Dependencies and Normal Forms.
Normalization theory exercises Dr. Shiyong Lu Department of Computer Science Wayne State University ©copyright 2007, all rights reserved.
CS Algorithm : Decomposition into 3NF  Obviously, the algorithm for lossless join decomp into BCNF can be used to obtain a lossless join decomp.
Normal Form Design addendum by C. Zaniolo. ©Silberschatz, Korth and Sudarshan7.2Database System Concepts Normal Form Design Compute the canonical cover.
Cs3431 Normalization Part II. cs3431 Attribute Closure : Example Consider R (A, B, C, D, E) with FDs A  B, B  C, CD  E Does A  E hold ? (Is A  E.
©Silberschatz, Korth and Sudarshan7.1Database System Concepts Chapter 7: Relational Database Design First Normal Form Pitfalls in Relational Database Design.
Chapter 8: Relational Database Design First Normal Form First Normal Form Functional Dependencies Functional Dependencies Decomposition Decomposition Boyce-Codd.
CSCI 4333 Database Design and Implementation – Exercise (3) Xiang Lian The University of Texas – Pan American Edinburg, TX
CSCI 4333 Database Design and Implementation – Exercise (2) Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Rensselaer Polytechnic Institute CSCI-4380 – Database Systems David Goldschmidt, Ph.D.
CSCI 4333 Database Design and Implementation – Exercise (1) Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Relational Data Model, Review Relation Tuple Attribute Domains Candidate key, primary key Key attribute, non-key attribute.
CSCI 4333 Database Design and Implementation – Exercise (5)
Functional Dependencies and Normalization 1 Instructor: Mohamed Eltabakh Part 2.
COP 6726: New Directions in Database Systems
Functional Dependency and Normalization
Advanced Normalization
CS 3630 Database Design and Implementation
Relational Database Design (Discussion Session)
Relational Database Design
Module 5: Overview of Database Design -- Normalization
Normalization First Normal Form (1NF) Boyce-Codd Normal Form (BCNF)
Canonical Cover & Normal Forms
Normal Forms.
Database Design Dr. M.E. Fayad, Professor
Relational Database Design by Dr. S. Sridhar, Ph. D
Relational Database Design
CS 480: Database Systems Lecture 22 March 6, 2013.
Advanced Normalization
Dependency Preservation
CSCI 6315 Applied Database Systems – Exercise (1)
11/12/2018.
Relational Design Theory
Relational Design Theory
Functional Dependencies and Normalization
Canonical Cover & Normal Forms
Module 5: Overview of Normalization
CSCI 6315 Applied Database Systems – Exercise (3)
Normalization Murali Mani.
CSCI 4333 Database Design and Implementation – Exercise (3)
CS 3630 Database Design and Implementation
Normalization Boyce-Codd Normal Form Presented by: Dr. Samir Tartir
Review  Only two chapters (6 & 7) Normalization Theory Triggers.
Functional Dependencies and Normalization
CSCI 3328 Object Oriented Programming in C# Review: Exam I
CSCI 6315 Applied Database Systems – Exercise (4)
Relational Design Theory
Normalization Part II cs3431.
CSCI 6307 Foundation of Systems – Exercise (1)
CSCI 4333 Database Design and Implementation – Exercise (4)
Boyce-Codd Normal Form (BCNF)
CSCI 6315 Applied Database Systems – Exercise (6)
CSCI 4333 Database Design and Implementation – Exercise (4)
Normalization of DB relations examples Fall 2015
Relational Database Design
Instructor: Mohamed Eltabakh
Database Design Dr. M.E. Fayad, Professor
Database Design Normalisation (2)
Quizzes on FD and NF Chapter 19
Chapter 7a: Overview of Database Design -- Normalization
CSCI 6307 Foundation of Systems – Exercise (5)
Functional Dependencies and Normalization
Functional Dependencies and Normalization
Lecture 09: Functional Dependencies
CS4222 Principles of Database System
Presentation transcript:

CSCI 6315 Applied Database Systems – Exercise (5) Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539 xiang.lian@utrgv.edu

Functional Dependency Given a schema R = (A, B, C, G, H, I) and a set of functional dependencies: F = {A  B A  C CG  H CG  I B  H} Please prove that the following functional dependencies are in F+: A  H AG  I CG  HI

Attribute Closure Please compute attribute closure (AG)+ Given a schema R = (A, B, C, G, H, I) and a set of functional dependencies: F = { A  B A  C CG  H CG  I B  H} Please compute attribute closure (AG)+ Is AG a candidate key?

Lossless Decomposition & Dependency Preserving R = (A, B, C) F= {A  B, B  C} Is the decomposition of R into R1 = (A, B) and R2 = (B, C) lossless? Dependency preserving? How about R1 = (A, B), R2 = (A, C)?

Boyce-Codd Normal Form (BCNF) R = (A, B, C) F = {A  B B  C} Is R in BCNF? Why? (Hint: Key = {A}) How to decompose R if R is not in BCNF?

Third Normal Form (3NF) R = (J, K, L) F = {JK  L, L  K} Is R in 3NF? Why? (Hint: Two candidate keys: JK and JL)

Minimal Cover Find a minimal cover of the following set of FDs: ABCD BCFG AG GB CG Is the decomposition of ABCDFG into ABCD and ACFG lossless? Explain.