RienSQL
TASK #61 · Medium

Rooms reserved on the 12th week of 2020

Your brief
Output a list of rooms that have been reserved for at least one day in the 12th week of 2020. In this task, take a period of seven days as one week, the first of which begins on January 1, 2020. For example, the first week of the year is January 1-7, and the third is January 15-21.
Expected columnsRooms.*Airbnb
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