MrRundog
04-14-2008, 08:22 PM
Hi I have the following table structure
tbl_booking
id roomID the_date id_booking
301 13 2008-04-01 114
299 13 2008-04-25 112
298 20 2008-04-02 111
297 20 2008-05-01 111
296 13 2008-05-03 111
297 13 2009-01-08 114
What I would love to do is show the id_booking per month but only once so that i would end up with
April 2008
booking 111
booking 112
booking 114
May 2008
booking 111
January 2009
booking 114
There are likely to be many entries in the table so efficiency is important.
Any ideas please
Cheers
tbl_booking
id roomID the_date id_booking
301 13 2008-04-01 114
299 13 2008-04-25 112
298 20 2008-04-02 111
297 20 2008-05-01 111
296 13 2008-05-03 111
297 13 2009-01-08 114
What I would love to do is show the id_booking per month but only once so that i would end up with
April 2008
booking 111
booking 112
booking 114
May 2008
booking 111
January 2009
booking 114
There are likely to be many entries in the table so efficiency is important.
Any ideas please
Cheers