Codington
0 of 8 problems solved • 0%

Exercise prompt

Compare Staging Averages

A staging run that took zero seconds has a measurement. A run with NULL has none. AVG uses the recorded values in each group and returns NULL if the whole group lacks measurements.

Your task

Select the runs in staging and group them by status. Return status and the average duration as avg_seconds. Keep all staging statuses, even when the average is NULL.

Opening the database…