TASK #204 · MediumThe 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).
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).
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
usersid, name, email, email_verified_at, password, phone_numberreservationsid, user_id, room_id, start_date, end_date, price, totalroomsid, home_type, address, has_tv, has_internet, has_kitchen, has_air_con, price, owner_id, latitude, longitudereviewsid, reservation_id, rating