Facilities with many slots booked
HAVING filters groups after aggregation; WHERE cannot see the sum.
task
List facility_id and total_slots for facilities with more than 4000 slots booked, ordered by facility_id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
HAVING filters groups after aggregation; WHERE cannot see the sum.
List facility_id and total_slots for facilities with more than 4000 slots booked, ordered by facility_id.