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
how many times does ROY SWEAZY has reserved a room
assistant
SELECT COUNT( * ) FROM Reservations WHERE FirstName = 'ROY' AND LastName = 'SWEAZY';
human
ok,show the count of all room
assistant
SELECT COUNT( DISTINCT room ) FROM Reservations;
human
show the count of all adults and kids
assistant
SELECT COUNT( adults ) , COUNT( kids ) FROM Reservations ;