MySQL – Calculating the total number of room sold exclude cancellation for each date in a particular date range of each category
I have booking sample data as follows: ----------------------------------------------------------------------------------- hotel_id | roomtype_id | status | booking_timestamp | checkin_date | checkout_date ----------------------------------------------------------------------------------- 1 | 1 | new | 2023-02-02 00:15:30 | 2023-02-03 | 2023-02-05 1 | 1 | new | 2023-02-04 09:10:15…