Chapter 6 Normalization
Chapter 6 Normalization
Chapter 6 Normalization
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
An example<br />
Consider the HasAccount(AccountNumber, ClientId,<br />
OfficeId) and the FD: { ClientId, OfficeId<br />
→ AccountNumber, AccountNumber → OfficeId.}<br />
It is not in BCNF since AccountNumber in the<br />
second FD is not a super key of the relation.<br />
We can thus use this FD as a guidance to split<br />
the relation.<br />
Letting X be AccountNumber, and Y be OfficeId.,<br />
the While loop will come up with two subschemas:<br />
S 1 =({AccountNumber, OfficeId) }; { AccountNumber<br />
→ OfficeId }) and S 2 =({ClientId, AccountNumber)};<br />
∅).<br />
Note that Client → AccountNumber is not implied<br />
by the original FDs.<br />
Question: Is the last one in BCNF<br />
46