1:
SELECT * FROM Check_in WHERE runTime BETWEEN TIMESTAMPADD ( MINUTE, -1, NOW() ) AND TIMESTAMPADD ( MINUTE, +5, NOW() ) AND accomp = 'NO' GROUP BY empNum, fltNum, depCity, runTime ORDER BY runTime, Num