RienSQL
TASK #66 · Medium

Rooms with all amenities

Your brief
Display a list of rooms with all amenities (TV, Internet, kitchen, and air conditioning), as well as the total number of days and the amount for all days of renting each of these rooms.
Expected columnshome_type address days total_feeAirbnb
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
usersid, name, email, email_verified_at, password, phone_number
reservationsid, user_id, room_id, start_date, end_date, price, total
roomsid, home_type, address, has_tv, has_internet, has_kitchen, has_air_con, price, owner_id, latitude, longitude
reviewsid, reservation_id, rating