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 > finding available seats in booking system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-04, 07:08
nroenn nroenn is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
finding available seats in booking system

Hello,

I have a custom system, that's comparable to booking people on buses. What I need is some sort of tool for finding available time/date for buses, so a person afterwards manually can book a group of people on one or more buses.

I have a fixed number of buses, say 30, which all have the same amount of seats, say 50. These buses can be booked by any group of people (1-nearly infinite) for anything from an hour up to many days.

Currently I'm using a solution from TransactionSQL Cookbook from O'Reillys, which basically uses a Pivot table for each day and then chews through every bus for every single day. It works very well, but when the number if buses, seats or days in the report increases, it's no longer an optimal solution.

I feel I'm re-inventing the wheel here, there are zillion of systems like this in airlines, trains etc, so there must be some algorithms for this out there.... :-)


Thanks in advance for your time!
Nikolai
Reply With Quote
  #2 (permalink)  
Old 02-07-04, 01:58
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
__________________
visit: relationary
Reply With Quote
  #3 (permalink)  
Old 02-09-04, 03:05
nroenn nroenn is offline
Registered User
 
Join Date: Jan 2004
Posts: 7
thanks!! :-)
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