RienSQL
TASK #204 · Medium

The February report lost a booking

Your brief
Accounting is closing February 2020: they need every booking whose check-out (end_date) fell in February.

The author of the query even remembered that 2020 is a leap year, but the report total still doesn't match the statement: one booking is missing, although it is in the table.

Output id (booking id), end_date (check-out date and time) and total (booking amount).
Expected columnsid end_date totalAirbnb
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