Loading…
A model that turns flight times into timestamps failed overnight, and the error only says that a time could not be parsed. Nothing upstream tested the raw values, so you are asked to write the data test that should have caught it: a query that returns the rows that break a rule, where no rows means the test passes.
Return flight_id, , , and for every flight that fails. A flight fails when or is filled in and falls outside the range '00:00' to '23:59'. A NULL time is not a failure of this test. Order by .
flight_dateactual_departureactual_arrivalactual_departureactual_arrivalflight_idCreate a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.