Codington
0 of 8 problems solved • 0%

Exercise prompt

Take the Latest Two Finishes

Select the rows with a recorded finish before sorting by finish time. Two runs in this log finished at the same instant, so the second sort column matters at the cutoff.

Your task

Return id and finished_at for the two latest recorded finishes, latest first. For equal finish times put the higher ID first.

Opening the database…