Instruction
Fantastic! How can we use these functions in our queries? We can use them to explore things that which took place in the last week, last month, and so on. Take a look:
SELECT Id FROM Flight WHERE Date > DATEADD(day, -7, current_timestamp);
The above query will find all flights that took place in the last 7 days.
Exercise
Find the IDs of all the aircraft that were produced more than three months ago.
Stuck? Here's a hint!
Use the DATEADD() function on the CURRENT_TIMESTAMP column. The datepart argument should be month.



