Quizzes on FD and NF Chapter 19

Slides:



Advertisements
Similar presentations
Functional dependencies 1. 2 Outline motivation: update anomalies cause: not expressed constraints on data (FDs) functional dependencies (FDs) definitions.
Advertisements

CS 440 Database Management Systems Practice problems for normalization.
Review for Final Exam Lecture Week 14. Problems on Functional Dependencies and Normal Forms.
Temple University – CIS Dept. CIS616– Principles of Data Management V. Megalooikonomou Functional Dependencies (based on notes by Silberchatz,Korth, and.
603 Database Systems Senior Lecturer: Laurie Webster II, M.S.S.E.,M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 6 A First Course in Database Systems.
Chapter 7: Relational Database Design. ©Silberschatz, Korth and Sudarshan7.2Database System Concepts Chapter 7: Relational Database Design First Normal.
CMSC424: Database Design Instructor: Amol Deshpande
1 CMSC424, Spring 2005 CMSC424: Database Design Lecture 9.
Databases 6: Normalization
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Chapter 8: Relational Database Design First Normal Form First Normal Form Functional Dependencies Functional Dependencies Decomposition Decomposition Boyce-Codd.
©Silberschatz, Korth and Sudarshan7.1Database System Concepts Chapter 7: Relational Database Design First Normal Form Pitfalls in Relational Database Design.
Computing & Information Sciences Kansas State University Monday, 13 Oct 2008CIS 560: Database System Concepts Lecture 18 of 42 Monday, 13 October 2008.
Chapter 7: Relational Database Design. 7.2Unite International CollegeDatabase Management Systems Chapter 7: Relational Database Design Features of Good.
Relational Database Design by Relational Database Design by Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany) DIRECTOR ARUNAI ENGINEERING.
CSCI 4333 Database Design and Implementation – Exercise (3) Xiang Lian The University of Texas – Pan American Edinburg, TX
THIRD NORMAL FORM (3NF) A relation R is in BCNF if whenever a FD XA holds in R, one of the following statements is true: XA is a trivial FD, or X is.
Computing & Information Sciences Kansas State University Tuesday, 27 Feb 2007CIS 560: Database System Concepts Lecture 18 of 42 Tuesday, 27 February 2007.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
COMP3030 Database Management System Final Review
Lecture 3 Functional Dependency and Normal Forms Prof. Sin-Min Lee Department of Computer Science.
1 Lecture 08: E/R Diagrams and Functional Dependencies Friday, January 21, 2005.
CS411 Database Systems Kazuhiro Minami 04: Relational Schema Design.
1 CS 430 Database Theory Winter 2005 Lecture 8: Functional Dependencies Second, Third, and Boyce-Codd Normal Forms.
Normalization Or theoretical and common sense approaches to redesigning a database.
TCCICOMPUTERCOACH ING.COM.  TCCI-Tririd Computer Coaching Institute provides best teaching in basic computer programming language at tcci-ahmedabad.
©Silberschatz, Korth and Sudarshan6.1Database System Concepts Chapter 6: Integrity Constraints Domain Constraints Referential Integrity Assertions Triggers.
Lecture 11: Functional Dependencies
The Entity-Relationship Model
CS 440 Database Management Systems
CSIS 115 Database Design and Applications for Business
Schema Refinement and Normal Forms
Database Management Systems (CS 564)
Module 5: Overview of Database Design -- Normalization
Relational Database Design by Dr. S. Sridhar, Ph. D
Relational Database Design
Web Programming Week 3 Old Dominion University
CPSC-310 Database Systems
CS 480: Database Systems Lecture 22 March 6, 2013.
Table of Contents SECTION SLIDE # 5 10 ABOUT YOU 3
Payroll Management System
Chapter 8: Relational Database Design
Modeling Your Data Chapter 2 cs542
From ER to Relational Model
CS405G: Introduction to Database Systems
Question Which of the following plays an important role in representing information about the real world in a database? Explain briefly 1)DDL.
CSCI 4333 Database Design and Implementation – Exercise (3)
Review  Only two chapters (6 & 7) Normalization Theory Triggers.
Table Normal Forms.
Team Project, Part II NOMO Auto, Part II IST 210 Section 4
Temple University – CIS Dept. CIS331– Principles of Database Systems
The Entity-Relationship Model
Normal Form: 4 & 5.
Lecture 07: E/R Diagrams and Functional Dependencies
Web Programming Week 3 Old Dominion University
Chapter 19 (part 1) Functional Dependencies
Designing Relational Databases
Review for Final Exam CSE462 B.Ramamurthy.
Relational Database Design
Schema Refinement and Normal Forms
Lecture 08: E/R Diagrams and Functional Dependencies
The Entity-Relationship Model
The Entity-Relationship Model
Web Programming Week 3 Old Dominion University
CSCI 6315 Applied Database Systems – Exercise (5)
Quizzes on FD and NF Chapter 19
Database.
Chapter 3: Multivalued Dependencies
Chapter 7a: Overview of Database Design -- Normalization
Presentation transcript:

Quizzes on FD and NF Chapter 19 The slides for this text are organized into chapters. This lecture covers Chapter 3, and introduces the relational model of data. It covers the data model and integrity constraints in detail, together with the related SQL commands for creating tables and expressing these constraints. We discuss how to take an ER design and convert it to the schema for a relational database. Querying and modifying tables, and the concept of views, are covered briefly. 1

Quiz 2 2. R=(A, B, C, D, E) 1. Show that the inference A B and C B, then A C is not sound. 2. R=(A, B, C, D, E) F={A BC, CD E, B D, E A} Find all the candidate keys in R 19

Quiz 3 2. R=(A, B, C, G, H, I) 1. R=(A, B, C, D, E, F, G, H, I) F={AB E, AG J, BE I, E G, GI H} Prove or disprove AB GH 2. R=(A, B, C, G, H, I) F={A B, A C, CG H, CG I, B H} Compute the closure of X =AG 19

Quiz 4.1 1) Is the following schema BCNF? R (Course#, Section#, Prof) F={C#S# P; P C#} 2) Is it 3NF? 3) Can you fix this schema to satisfy certain normal form? Which NF does it satisfy? 4) What might be a problem in your solution for 3)? 5) What are the policies of this department? 25

Quiz 4.2 Consider the following schema. Is it in 3NF? R (Flight, From, To, Departs, Arrives, Duration, Type, First-class, Coach, Total-seat, #Meals) Keys={Flight; From To Departs; From To Arrives} F={Type First, Coach, Total; Departs Duration #Meals; First Coach Total; First Total Coach; Coach Total First} If it is in 3NF, prove it. If not, make it. 25