count over ()
An empty OVER () is the whole result as one window. It gives totals next to detail rows.
task
Each facility's number of bookings and its percent of all bookings (1 decimal), without a subquery: columns facility_id, count, percent.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
An empty OVER () is the whole result as one window. It gives totals next to detail rows.
Each facility's number of bookings and its percent of all bookings (1 decimal), without a subquery: columns facility_id, count, percent.