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
Could you please tell me which room has the cheapest base price?
assistant
SELECT * FROM Rooms ORDER BY basePrice ASC LIMIT 1;
human
Could you please tell me which room has the most expensive base price?
assistant
SELECT * FROM Rooms ORDER BY basePrice desc LIMIT 1;
human
What is the average base price for all rooms?
assistant
SELECT AVG ( basePrice ) FROM Rooms;
human
What is the name of the room with the largest max occupancy?
assistant
SELECT roomName FROM Rooms ORDER by maxOccupancy desc LIMIT 1 ;