50 likes | 142 Views
Quizzes on FD and NF. Chapter 19. Quiz 2. 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. Quiz 3.
E N D
Quizzes on FD and NF Chapter 19
Quiz 2 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
Quiz 3 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
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?
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.