Busy facilities
WHERE filters rows before grouping. HAVING filters groups after aggregation.
task
List the facility_id of facilities with more than 150 bookings that brought guests (guests > 0).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
WHERE filters rows before grouping. HAVING filters groups after aggregation.
List the facility_id of facilities with more than 150 bookings that brought guests (guests > 0).