Write a SQL query to retrieve specific performance metrics from a relational database. Use the metric_catalog and performance_measurements tables to retrieve active metric codes M001, M002, and M003 for the first quarter of 2025. Include metrics without a recorded measurement and classify each result based on its target value.
Output
- One row per selected metric measurement, plus one row for a selected metric with no measurement.
- Columns:
metric_code, metric_name, measured_on, metric_value, and performance_status.
- Include only active selected metrics and measurements from 2025-01-01 through 2025-03-31. Sort by metric code, measurement date ascending with missing dates last, and measurement ID.