I was studying functional dependencies and normalization and I've come across a question. The original question is below:
"Given the relation R = {v,w,x,y,z} and functional dependency set {v->w,y->z,yz->v,wx->z} find BCNF composition and check if dependency preservation holds."
First I tried to find minimal cover and came up with this:
Minimal Cover:
v -> w
y -> z
y -> v
wx -> z
Then I tried to found candidate keys, came up with only one candidate key:
Candidate Keys:
xy
Then I started to check normal forms:
1st Normal Form: check
2nd Normal Form:
I thought the below dependencies are violating 2nd normal form:
1) y -> z
2) y -> v
3) wx -> z
The first two were easy to solve. However, I've never seen an example of the 3rd where the left-hand side is a composite of prime and non-prime attributes. How do we solve this kind of situation? Do we make a new relation for the 3rd making w and x primary key?
If I solve that part, the 3rd and BC normal forms will be easy I guess.