Can you explain how you would optimize a database for performance at 3Y Health?
For this hands-on SQL exercise, use the supplied PostgreSQL schema to produce the reporting result and explain performance improvements. Return only qualifying facilities and months.
Output
- One row per facility and calendar month.
- Columns:
facility_id, facility_name, report_month, and abnormal_result_count.
- Include active patients' abnormal results from January through March 2025, keeping facility-month groups with at least two results.
- Order by
report_month ascending, then facility_id ascending.