For each room and each calendar month of 2025 that has completed sessions, show their count and total duration in minutes. Each session is counted separately; an unknown duration adds no minutes, and if all durations in a group are unknown, the total is 0.
Columns: room_name, month_start, completed_sessions, total_minutes
Sort by month_start ascending, then by room_name ascending.
PostgreSQL 17; the query is run in a browser.
Starting PostgreSQL…
Starting PostgreSQL…