Best April deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
4. The flight table
Dealing with dates
Working with time
Date and time data types in PostgreSQL
Extracting dates and times
Timezone conversion
Format date and time
Current date and time data
Summary

Instruction

The last table we'll work with is flight. Let's check it out.

Exercise

Select all information from the flight table.

This table lists individual flights with IDs (the id column) for a set route (route_code) with a specific aircraft (aircraft_id) on a given date (flight_date).

It also contains another column, delay, that is expressed in minutes. A positive value in this column means that the arrival was indeed delayed. A negative value indicates that the plane landed ahead of schedule.