G
Guest
I have a report for a hotel rate database, which currently sorts by "room
type" and by "valid from fields" and looks like this:
Room type Valid from Valid to SGL Half Twin 3rd pax
Deluxe River view 01-Nov-06 26-Dec-06 5,900.00 3,068.00 1534
27-Dec-06 03-Jan-07 6,608.00 3,422.00 1534
04-Jan-07 31-Mar-07 5,900.00 3,068.00 1534
01-Apr-07 31-Oct-07 4,956.00 2,596.00 1534
Deluxe room 01-Nov-06 26-Dec-06 5,192.00 2,714.00 1534
27-Dec-06 03-Jan-07 5,900.00 3,068.00 1534
04-Jan-07 31-Mar-07 5,192.00 2,714.00 1534
01-Apr-07 31-Oct-07 4,248.00 2,242.00 1534
Junior Suite 01-Nov-06 26-Dec-06 6,844.00 3,540.00 1534
27-Dec-06 03-Jan-07 7,552.00 3,894.00 1534
04-Jan-07 31-Mar-07 6,844.00 3,540.00 1534
01-Apr-07 31-Oct-07 5,900.00 3,068.00 1534
However I want the report to display the room type with the lowest room rate
first, then the room type with the next highest room rate next and so on
(lowest rate rate taken based on twin room starting on Nov 01) and the result
should loom like this:
Room type Valid from Valid to SGL Half Twin 3rd pax
Deluxe room 01-Nov-06 26-Dec-06 5,192.00 2,714.00 1534
27-Dec-06 03-Jan-07 5,900.00 3,068.00 1534
04-Jan-07 31-Mar-07 5,192.00 2,714.00 1534
01-Apr-07 31-Oct-07 4,248.00 2,242.00 1534
Deluxe River view 01-Nov-06 26-Dec-06 5,900.00 3,068.00 1534
27-Dec-06 03-Jan-07 6,608.00 3,422.00 1534
04-Jan-07 31-Mar-07 5,900.00 3,068.00 1534
01-Apr-07 31-Oct-07 4,956.00 2,596.00 1534
Junior Suite 01-Nov-06 26-Dec-06 6,844.00 3,540.00 1534
27-Dec-06 03-Jan-07 7,552.00 3,894.00 1534
04-Jan-07 31-Mar-07 6,844.00 3,540.00 1534
01-Apr-07 31-Oct-07 5,900.00 3,068.00 1534
How do I have to construct a query or the report that it groups the room
types as displayed above AND sorts them based on the lowerst half-twin rate
for the first validity period.
Thanks! Niki
type" and by "valid from fields" and looks like this:
Room type Valid from Valid to SGL Half Twin 3rd pax
Deluxe River view 01-Nov-06 26-Dec-06 5,900.00 3,068.00 1534
27-Dec-06 03-Jan-07 6,608.00 3,422.00 1534
04-Jan-07 31-Mar-07 5,900.00 3,068.00 1534
01-Apr-07 31-Oct-07 4,956.00 2,596.00 1534
Deluxe room 01-Nov-06 26-Dec-06 5,192.00 2,714.00 1534
27-Dec-06 03-Jan-07 5,900.00 3,068.00 1534
04-Jan-07 31-Mar-07 5,192.00 2,714.00 1534
01-Apr-07 31-Oct-07 4,248.00 2,242.00 1534
Junior Suite 01-Nov-06 26-Dec-06 6,844.00 3,540.00 1534
27-Dec-06 03-Jan-07 7,552.00 3,894.00 1534
04-Jan-07 31-Mar-07 6,844.00 3,540.00 1534
01-Apr-07 31-Oct-07 5,900.00 3,068.00 1534
However I want the report to display the room type with the lowest room rate
first, then the room type with the next highest room rate next and so on
(lowest rate rate taken based on twin room starting on Nov 01) and the result
should loom like this:
Room type Valid from Valid to SGL Half Twin 3rd pax
Deluxe room 01-Nov-06 26-Dec-06 5,192.00 2,714.00 1534
27-Dec-06 03-Jan-07 5,900.00 3,068.00 1534
04-Jan-07 31-Mar-07 5,192.00 2,714.00 1534
01-Apr-07 31-Oct-07 4,248.00 2,242.00 1534
Deluxe River view 01-Nov-06 26-Dec-06 5,900.00 3,068.00 1534
27-Dec-06 03-Jan-07 6,608.00 3,422.00 1534
04-Jan-07 31-Mar-07 5,900.00 3,068.00 1534
01-Apr-07 31-Oct-07 4,956.00 2,596.00 1534
Junior Suite 01-Nov-06 26-Dec-06 6,844.00 3,540.00 1534
27-Dec-06 03-Jan-07 7,552.00 3,894.00 1534
04-Jan-07 31-Mar-07 6,844.00 3,540.00 1534
01-Apr-07 31-Oct-07 5,900.00 3,068.00 1534
How do I have to construct a query or the report that it groups the room
types as displayed above AND sorts them based on the lowerst half-twin rate
for the first validity period.
Thanks! Niki