Codington
0 of 8 problems solved • 0%

Exercise prompt

Find Repeated Environment and Status Pairs

When GROUP BY names two columns, HAVING tests each pair separately. A failure in staging and one in production contribute to two different groups.

Your task

Return environment, status and run_count for pairs observed at least twice. Sort alphabetically by environment and then status.

Opening the database…