human
Schema:
Rooms (RoomId, roomName, beds, bedType, maxOccupancy, basePrice, decor)
Reservations (Code, Room, CheckIn, CheckOut, Rate, LastName, FirstName, Adults, Kids)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the first name of Reservations Code 10105?
assistant
SELECT FirstName FROM Reservations WHERE Code = 10105;
human
What is the last name of Reservations Code 10105?
assistant
SELECT LastName FROM Reservations WHERE Code = 10105;
human
Can you show the names of rooms that have been reserved for more than 60 times
assistant
SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING COUNT( * ) > 60 ;