In my imagination a hotel tells URLyBird to sell so many rooms for a single night. If they have 5 rooms that means 5 records in the database file. If there is just one room for today and tomorrow there are two records in the database file
I hadn't tought of it that way but after thinking about it I agree with you guys. I think I will also stick with just updating the customer code.
It was that
single that had me confused. Normally when a customer leaves his/her hotel room it is available again afterwards. I had forgotten that URLyBird is not an actual hotel but a broker for hotel rooms. As a broker they indeed can not assume that the room will be available the next day.
Doesn't that mean that there should be some kind of housekeeping routine that would delete booked rooms if the date available is past for more than one day ? I guess that is what that "legacy application" does they mention in my instructions ? Or should we have an automatic houskeeping when the server starts up ? Maybe there should but it is out of scope for this assignment ?
Anyway, thanks again guys.