Agile Defense's mission support dashboard needs a daily summary of operational events across missions and monitored systems. Write a PostgreSQL query that joins mission events to their mission and system records, then aggregates the results by event date and mission.
Requirements
- Restrict results to events from April 1 through April 4, 2025, inclusive.
- Return the event date, mission code, mission name, total event count, completed event count, distinct systems involved, and total impact score.
- Use a
LEFT JOIN for systems so events remain visible when a system record is unavailable. Treat a missing impact score as zero.
- Return only date and mission groups with more than one event, ordered by date and mission code.