I have the following query:
These could be in any order in the database, but when I display them, I want them grouped together by RoomName in descending order(since the most popular room is at the end of the alphabet), and sorted by ReserveRoomStart within RoomName in ascending order. How do I do this? Thanks a lot! You people are the best!
Calista :-X
Jedi Knight,
Champion of the Force
Code:
<CFQUERY NAME="GetYourMeetings"
DATASOURCE="#Application.Datasource#"
DBTYPE="ODBC">
SELECT ReserveRoomID,ReserveRoomStart,RoomName
FROM ReserveTable,
RoomTable
WHERE ReservePersonID = '#Cookie.User.ID#'
GROUP BY ReserveRoomID,RoomName,ReserveRoomStart
ORDER BY RoomName,ReserveRoomStart DESC
</CFQUERY>
Calista :-X
Jedi Knight,
Champion of the Force