B
Bunky
I have been asked to write an application that will produce the amount to
charge a person who wants to rent a room. I have already designed a rate
table that contains a resort number, From and To rate dates, room type, and
then 4 different daily rates to charge. My problem arises when a person
whats to stay at the resort over more than one From / To rate period. The
operator will enter the dates the person wants to stay, the resort, and the
room type but how do I only bring back the rates for the days wanted?
Example
Resort FromDt ToDt ARate BRate CRate DRate RmType
87 6/27 07/02 4 5 6 7
2br
87 7/03 07/04 9 12 15 8
2br
87 07/05 08/16 5 6 7 8
2br
87 08/17 09/03 4 6 6 6
2 br
Person wants to stay 07/01 to 07/07. How would I return the rates for all
three rows?
Any help is appreciated.
Thanks
charge a person who wants to rent a room. I have already designed a rate
table that contains a resort number, From and To rate dates, room type, and
then 4 different daily rates to charge. My problem arises when a person
whats to stay at the resort over more than one From / To rate period. The
operator will enter the dates the person wants to stay, the resort, and the
room type but how do I only bring back the rates for the days wanted?
Example
Resort FromDt ToDt ARate BRate CRate DRate RmType
87 6/27 07/02 4 5 6 7
2br
87 7/03 07/04 9 12 15 8
2br
87 07/05 08/16 5 6 7 8
2br
87 08/17 09/03 4 6 6 6
2 br
Person wants to stay 07/01 to 07/07. How would I return the rates for all
three rows?
Any help is appreciated.
Thanks