If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Boyce-codd Normal Form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-23-04, 17:18
kram66 kram66 is offline
Registered User
 
Join Date: Feb 2004
Posts: 86
Boyce-codd Normal Form

I have seen many descriptions of Boyce-Codd Normal Form, however none make any sense. Can somebody explain this in easy terms?
Reply With Quote
  #2 (permalink)  
Old 03-24-04, 11:13
r123456 r123456 is offline
Registered User
 
Join Date: Sep 2003
Location: The extremely Royal borough of Kensington, London
Posts: 778
R(supplier_id, part_id, supplier_name, qty)

Keys:

(supplier_id, part_id)
(supplier_name, part_id)

The following constraint is given:
supplier_id => supplier_name, supplier_name => supplier_id

Therefore the relation R does not violate 3NF, however it violates BCNF.

To solve:

R1(supplier_id, part_id, qty) key (supplier_id, part_id)
R2(supplier_id, supplier_name) key (supplier_id), UNIQUE(supplier_name)
__________________
Bessie Braddock: Winston, you are drunk!
Churchill: And Madam, you are ugly. And tomorrow, I'll be sober, and you will still be ugly.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On