SELECT DISTINCT JobId, StartTime
  FROM temp
 ORDER BY StartTime ASC
