hotel room occupancy: add feature
hotel room occupancy: add feature: a task in smol-software-harbor (Harbor dataset). Write a new query queries/revenue by type.sql returning type nights revenue cents for every room type: the number of booked nights (check-out day excluded) and their revenue at the room's rate, highest revenue…
The task
Write a new query `queries/revenue_by_type.sql` returning `type|nights|revenue_cents` for every room type: the number of booked nights (check-out day excluded) and their revenue at the room's rate, highest revenue first (ties by type). Room types without bookings appear with `0|0`. Run `bash tests/run.sh`.
Part of efederici/smol-software-harbor.