Codington
0 of 8 problems solved • 0%

Exercise prompt

Compare Timing Coverage by Status

The log sometimes records a status before it records a duration. Within a group, COUNT(*) counts its rows and COUNT(duration_seconds) counts its recorded times, including zero.

Your task

Return one row per status. Show status, the number of runs as run_count and the number with a recorded duration as timed_runs. Keep statuses with no recorded times.

Opening the database…