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 > car rental ERD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-17-06, 23:44
ctxms ctxms is offline
Registered User
 
Join Date: Aug 2006
Posts: 7
car rental ERD

hi there,

i am doint the ERD for a car rental company. this company has got Branches all over Europe. If one branch does not have the requested vehicle, it will check its other braches all over Europe and if they do not also have the requested vehicle, it will ask a local hire rival for the requested vehicle.

i have drawn my ERD however, i am not sure it is the correct way to represent this senario. I was wondering whether it is possible to make the Branch recursive in order to describe that one branch is checking the other branch in the company.

another question is regarding to the vehicle and fleet, in my senario the company rent out both individual vehicle or fleet. I was wondering whether my erd is correct the relation between the vehicle and fleet.

many thanks
i look forward to hearing from you
Attached Files
File Type: doc MY ERD.doc (24.0 KB, 210 views)
Reply With Quote
  #2 (permalink)  
Old 12-17-06, 23:49
ctxms ctxms is offline
Registered User
 
Join Date: Aug 2006
Posts: 7
missed part

sorry the last attachement missed some part please check this one that i am posting again.
Attached Files
File Type: doc MY ERD.doc (24.0 KB, 234 views)
Reply With Quote
  #3 (permalink)  
Old 12-18-06, 01:00
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Since in your described scenario, all branches are checked if the target branch cannot supply the vehicle, there is no benefit to using a recursive relationship. There are other benefits from a recursive business relationship though, so you may consider implementing one anyway.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
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