Introduction
Dates
Time
Timestamps
Extract functions
Timezone conversion
Intervals
28. Difference between timestamps
Current date and time
Revision

Instruction

Great, let's move on. Our database can add and subtract dates. Take a look:

SELECT withdrawn – launched
FROM aircraft;

The above query will calculate the difference between the columns withdrawn and launched. What will the result look like? Let's find out.

Exercise

Run the template query and analyze the result.

Console

Code editor

Result

TableConsole