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 > ask - bug in my design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-08, 22:34
poci_wasiat poci_wasiat is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
ask - bug in my design

except the logic of my database design..
are there any bugs in my design??
thanks..
http://i34.tinypic.com/11j3uxv.jpg

attributes
http://i38.tinypic.com/301hao4.jpg
Reply With Quote
  #2 (permalink)  
Old 08-25-08, 06:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i found at least one -- vehicle types don't have license numbers
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-25-08, 11:19
ronnyy ronnyy is offline
Registered User
 
Join Date: Feb 2008
Posts: 43
Hi,

I would have linked the VehicleType with the Vehicle Table directly, not going trough the Licence table.
I would have linked as well the Driver to the Accident table.

I do not know if you really need the VehicleType, cause you have a Vehicle table as well. If you store more fields in VehicleType it makes sense, otherwise to store only one field, like car, bike, bus... it might be too much.
It might be overnormalization.

I hope it helps.
Now I've seen the attributes picture..., I'll have a look.


After seeing the fields picture I have even more questions.
What is the difference between PloiceName and PoliceStationName. From my point of view, if you don't have something like PoliceOfficerName instead of PoliceName, you could just merge the two tables.

The Licence table has engine capacity, wheels.... either you move them to the Vehicle or VehicleType tables or you double them in the Licence table(having the meaning MAX wheels, MAX engine capacity) and the Vehicle or VehicleType tables(having the meaning of actually how many wheels your vehicle has).

You don't have a foreign key in Driver for Restrictions and in Accident for Vehicle.

Last edited by ronnyy; 08-25-08 at 11:28.
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