i have the following table structure for a booking system i am developing for a client
date
houseid
price
effectivefrom
effectively i hold a price for each house and for each day. it sounds crazy but it lent itself to the simplest coding solution at the time it was first developed.
i also hold all changes to the pricing so that a particular house on a particular day can have multiple prices depending on what day the booking was made.
I'd like some help with putting together a query that will return all the prices on all days (in a given year) for all houses for a booking made on a particular day (and that won't kill my server).
thanks
Justin
date
houseid
price
effectivefrom
effectively i hold a price for each house and for each day. it sounds crazy but it lent itself to the simplest coding solution at the time it was first developed.
i also hold all changes to the pricing so that a particular house on a particular day can have multiple prices depending on what day the booking was made.
I'd like some help with putting together a query that will return all the prices on all days (in a given year) for all houses for a booking made on a particular day (and that won't kill my server).
thanks
Justin