declare @starttime datetime = '2012-03-07 22:58:00' SELECT BookingId, StartTime FROM Booking WHERE ABS( DATEDIFF( minute, StartTime, @starttime ) ) <= 60