Professional Documents
Culture Documents
Systems Group
Prof. D. Kossmann
FS 2014
Data Modeling and Databases
Exercise Sheet 5
Normal Forms I
1
Closure of Attributes
D EG
CG BD
CA
ACD B
BE C
CE AG
We define = BD.
Find the closure of attributes + of (F, )
Minimal Basis
2. (a) AB C
(b) C A
(c) BC D
(d) ACD B
(e) BE C
(f) CE F A
(g) CF BD
(h) D EF
Decomposition
Consider the following relation R and its decomposition into R1 and R2.
Table Name
R
R1
R2
Attributes
(Student ID, Date Enrolled, Course ID, Room NR, Professor)
(Student ID,Date Enrolled,Course ID)
(Date Enrolled, Room NR, Professor)
1. Show that the decomposition of R to R1 and R2 is a lossy decomposition? It will help to find the
functional dependencies first.
2. Find and explain a losless decomposition of the same relation.
For this exercise, assume that courses are taught only by one professor and take place in just one
room.