This should give you the latest setback on the platform. It relies on id be consistent in time.
Replace * columns you really need.
Select * From results r Join testcases t On ( t.testCase = r.testCase ) Where r.id In ( Select Max(id) From results Where verdict = 'fail' Group By platform )
Alternatively, you can use Left Join to get only the rows with the highest startTime per platform :
Select * From results r Join testcases t On ( t.testCase = r.testCase ) Left Join results r2 On ( r2.platform = r.platform And r2.verdict = r.verdict And r2.startTime > r.startTime ) Where r.verdict = 'fail' And r2.id Is Null
source share