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 > availabiltiy for a car park booking system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-08, 17:41
JDaniels1 JDaniels1 is offline
Registered User
 
Join Date: Jul 2008
Posts: 2
availabiltiy for a car park booking system

hi,

I'm going to get a developer to create a new site for a car park which will include a booking system.

I want to understand how availability or occupancy would typically be modeled for a car park in a database or booking system.

Would you simply use count variable for each date, for example.

If the total number of cars booked in the car park was
4July08 = 9
5July08 = 10
6July08 = 4
and you were booking in a car from 4th to 6th July would you simply add +1 to each date count? So you would then have
4July08 = 10
5July08 = 11
6July08 = 5
I assume you would have a maximum occupancy variable also.
Is this typically how this type of thing would be modeled?
Reply With Quote
  #2 (permalink)  
Old 07-04-08, 04:16
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
You would not store something you can calculate like this.
If your table stored the date a car was booked in, then ultimately, a count of the number of records with a specified date gives you this value.
__________________
George
Twitter | Blog
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