In module 14, each environment got a row in the report. Add HAVING after GROUP BY to keep only groups whose count meets a threshold. The example keeps statuses that occur at least twice.
SELECT status, COUNT(*) AS runs
FROM deployments
GROUP BY status
HAVING COUNT(*) >= 2;Group all deployments by environment. Show environment and COUNT(*) as run_count for environments with at least seven runs.