Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 18: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, 05:16
georgev georgev is offline
SQL Apprentice
 
Join Date: Jan 2007
Location: hiding
Posts: 8,131
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
You only stop learning when you stop asking questions.
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

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