Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Dealing with dates
Working with time
Date and time data types in PostgreSQL
Extracting dates and times
Intervals
Timezone conversion
Format date and time
Current date and time data
Summary

Instruction

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

SELECT withdrawn_timestamp - launched_timestamp AS difference
FROM aircraft
WHERE withdrawn_timestamp IS NOT NULL;

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

Exercise

Run the template query and analyze the result.