TASK #72 · MediumAverage booking price
Your brief
Print the average booking price per day for each of the rooms that have been booked at least once. The average is the simple mean of the price field over all reservations of the room. It must be rounded up to an integer value.
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