I need a query that bring me a table like
7 AM | 7:30 AM | 8 AM | 8:30 AM...........|6:30 PM|
----- --------- -------- ----- ............. -------
| Booked | Booked | Booked ...........| |
My Table Name is : zUSM_RoomReservationInfo This is the structure and Data of the Table
ReservationID RoomId StartDateTime EndDateTime
------------- ------- ----------------------- -----------------------
1 102 2013-02-01 10:00:00.000 2013-02-01 12:00:00.000
2 201 2013-01-27 16:00:00.000 2013-01-27 17:00:00.000
3 102 2013-02-01 14:00:00.000 2013-02-01 16:00:00.000
By Giving ONE Date and Room Id as Input it should give me table like I mentioned above.