29.12.2014 Views

Chapter 6 Normalization

Chapter 6 Normalization

Chapter 6 Normalization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Deletion abnormally happens in a table when<br />

in an FD X → Y, X is part of the key. Thus,<br />

when the other part of the key is deleted, so<br />

is X and all the associated data.<br />

This wont happen in BCNF tables either, since<br />

if there is such an FD, X is the key.<br />

For example, in the following table, if we delete<br />

the hobby of Mary, the whole tuple has to be<br />

deleted, since Hobby is part of its key.<br />

ID Name Address Hobby<br />

1111 John Doe 123 Main St. Stamps<br />

1111 John Doe 123 Main St. Coins<br />

2222 Mary Doe 7 Lake Dr. Acting<br />

With a BCNF tables, it won’t be an issue. If<br />

we delete, e.g., ID, the whole tuple is gone.<br />

ID Name Address<br />

1111 John Doe 123 Main St.<br />

2222 Mary Doe 7 Lake Dr.<br />

32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!