Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Dealing with dates
Working with time data
Date and time date
Extracting dates and times
Doing arithmetic with dates
Converting date and time data
Current date and time data
Building date and time data from parts
Summary and review


Alright. Let's do one more exercise in this regard.


Find the Code of all the routes that normally depart within 3 hours from the current time.

Stuck? Here's a hint!

To get the current time, you need to cast current timestamp to a TIME data type:

You need to use the DATEADD() function and use CAST() to get the TIME part from it.