SELECT Room.Name As ROOM_NAME ,PRIMARY_QUERY.*
FROM
( select ROOM_ID,count(*) from RESV
WHERE RESV_STTS LIKE '%C'
group by ROOM_ID having count(*) > 1
) AS PRIMARY_QUERY
LEFT JOIN ROOM
ON ROOM.ROOM_ID = PRIMARY_QUERY.ROOM_ID
หรือ
SELECT RESV.ROOM_ID AS ID ,ROOM.NAME AS ROOM_NAME
,COUNT(RESV.ROOM_ID) AS ROOM_COUNT
FROM RESV
LEFT JOIN ROOM
ON ROOM.ROOM_ID = RESV.ROOM_ID
WHERE RESV.RESV_STTS LIKE '%C'
GROUP BY RESV.ROOM_ID ,ROOM.NAME
having count ( RESV.ROOM_ID ) > 1