If the start time is a datetime type, you can use something like
SELECT BookingId, StartTime FROM Booking WHERE StartTime >= '2012-03-08 00:00:00.000' AND StartTime <= '2012-03-08 01:00:00.000'
Obviously, you would like to use your own values ββfor time, but this should give you everything within 1 hour, including both the upper and lower limits.
You can use the GETDATE () function to get the current current date.
source share