Codington
0 of 8 problems solved • 0%

Exercise prompt

Find Days with Repeated Failures

Two conditions determine which log rows to count: the time window and the run status. After grouping those rows by day, HAVING can test how many failures occurred on each date.

Your task

During the week beginning 11 May, find dates with at least two runs with status failed. Include runs without an assigned service. Return run_day (a date) and failure_count, earliest day first.

Opening the database…