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 > Bcnf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-10-04, 09:21
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
Bcnf

hi

as part of my revision i have been revising normalisation

attached is a document which i have normalised to BCNF. can n e 1 tell me whether i have done it correctly or not?

if not can you tell me where i am going wrong and how to correct it.

please help me my exams are 2morrow and i really don't want to fail please please please please
Reply With Quote
  #2 (permalink)  
Old 03-10-04, 09:22
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
and here is the document
Attached Files
File Type: doc table2.doc (80.0 KB, 96 views)
Reply With Quote
  #3 (permalink)  
Old 03-10-04, 09:38
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Looks to me like Client No functionally determines Client Name and perhaps Tel No, but it does not determine anything else. The same client could use your taxi service for 2 different journeys.

What has happened to Job Id in the final version?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #4 (permalink)  
Old 03-10-04, 09:45
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
thanks for that i must have missed that off. is this corrected verion better?
Attached Files
File Type: doc table2.doc (78.0 KB, 113 views)
Reply With Quote
  #5 (permalink)  
Old 03-10-04, 10:04
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Yes, but now you no longer have the FD Staff No -> Veh Reg No which I think you had before.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #6 (permalink)  
Old 03-10-04, 10:15
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
your right - i have now corrected that- is this correct now
Reply With Quote
  #7 (permalink)  
Old 03-10-04, 10:16
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
here's the doc
Attached Files
File Type: doc table2.doc (78.0 KB, 101 views)
Reply With Quote
  #8 (permalink)  
Old 03-10-04, 10:19
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
I still can't see where that FD is separated out into its own table in the 2NF version?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #9 (permalink)  
Old 03-10-04, 10:25
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
can u explain a little more in depth or show me what u mean- i'm still not sure?
Reply With Quote
  #10 (permalink)  
Old 03-10-04, 10:33
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
In a normalised set of relations, all non-key attributes must be dependent directly on the relation key.

Your first relation has the key {JobID, StaffNo}. Is that right? Can there be 2 records with the same JobID but a different StaffNo?

Does the Veh Reg No depend on the JobID AND the StaffNo as you have it, or does it depend just on the StaffNo? (It could be either, depending on whether cars "belong" to the Staff or are shared between them).
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #11 (permalink)  
Old 03-10-04, 10:41
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
there can't be two relations with the same jobid but different staff no's. and the viechel reg only depends on the staff no's.

i am rea;;y confused now as of where to go from here? what steps should i take next
Reply With Quote
  #12 (permalink)  
Old 03-10-04, 10:45
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Create a relation with jobid as the key, and put in it what depends on jobid, like Staff No, start time, drop off point, whatever.

Create another relation with Staff No as the key, and put in it what depends on Staff No, which is just Veh Reg No.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #13 (permalink)  
Old 03-10-04, 10:52
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
thanks for that- i was feaking out a bit there-

is this now correct. does this apply for ŁNF and BCNF?
Reply With Quote
  #14 (permalink)  
Old 03-10-04, 10:52
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
i keep forgetting the attachment... Doooooh!!!!
Reply With Quote
  #15 (permalink)  
Old 03-10-04, 10:54
evilz35 evilz35 is offline
Registered User
 
Join Date: Feb 2004
Posts: 78
and here is is
Attached Files
File Type: doc table2.doc (75.5 KB, 96 views)
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