Codington
0 of 8 problems solved • 0%

Exercise prompt

Count Completions for Every Service

The service registry includes services without any runs. A LEFT JOIN from the registry keeps them visible. Put the status condition in ON and consider which ID to count when grouping the matched rows.

Your task

Show one row per registered service. Return its name as service and its number of runs with status completed as completed_runs. Show zero for services with no completed runs.

Opening the database…