What will be the decomposition for this relation in 1NF, 2NF, 3NF and BCNF
Relation -
Transfers(destination,departs,airline,gate,name,contact,pickup)
Functional Dependencies -
destination, departs, airline → gate
gate → airline
contact → name
name, departs → gate, pickup
gate, departs → destination
I tried to find the candidate key using closure and found it to be (contact, departs)
.
Then based on that candidate keys I tried to decompose it into the subsequent normal forms.
2NF – No Partial Dependency
R1(Contact, Name)
R4(Name, Departs, Gate, Pickup, Airline)
R5(Gate, Departs, Destination)
3NF- No transitive dependency & BCNF
R1(Contact, Name)
R2(Name, Departs, Gate, Pickup)
R3(Gate, Airline)
R4(Gate, Departs, Destination)
Is this right or is there a problem here? Because my decomposition for 2NF does not depict the first FD.