NguyenVanPhongHE190611LAB2
NguyenVanPhongHE190611LAB2
b. Show that SDIM is in second normal form but not third normal
form.
a. SI -> D, SD -> M => SI -> M, also SI -> D => SI is the only key
2. Consider the relation scheme with attributes CITY, ST, and ZIP,
which we here abbreviate
C, S, and Z. We observed the dependencies CS->Z and Z->C. The
decomposition of the relation scheme CSZ into SZ and CZ has a lossless join.
Does this decomposition preserve dependencies?
D. Does your answer to (b) have a lossless join? If not, how could you
modify the database scheme to have a lossless join and still preserve
dependencies?
a.
A→D => AB -> BD.
c.
This decomposition does not have a lossless join because R1(ABD) and
R2(BC) do not share a key.
b.
Consider the relation
A B C
1 2 3
1 2 4
b.Dependency Preservation
The decomposition does not preserve all dependencies:
Final Relations
● R1(A,B)
● R3(D,B)
● R4(A,C,D)Lossless Join