Codington
0 of 8 problems solved • 0%

Exercise prompt

Prepare the Release Review

A single service can have very different run times in staging and production. The release team wants a separate line for each service and environment with a completed or failed run. One line should show both activity and timing.

Your task

Join the log to the registry. Include runs for named services in staging or production with status completed or failed. Group by service name and environment. Return these columns in order: service (name), environment, run_count, total_seconds, avg_seconds, min_seconds, max_seconds. Count every qualifying run and use recorded durations for the four time measures. Sort by service name and then environment, both alphabetically.

Opening the database…