Your query will return the maximum room number. By maximum I mean the bigger number, not the most frequently booked.
For that you will need count() function grouped by room number. Also it requires to have the room number in the select (in order to see which one it is) and to order by count desc.
If you just want the room number and not the number of times it has been booked you need to create a query with the above as a sub-query (or at least this is the easiest way to do it).
adam_k
Practically a Posting Shark
803 posts since Jun 2011
Reputation Points: 256
Solved Threads: 149