Best April deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
2. The route 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

Let's introduce the tables we're going to work with. A (fictional) European airline called PerfectAir has shared some of its data. Let's see what we've received from them.

Exercise

Select all information from the route table. This table keeps track of the flight routes used by PerfectAir. Each route has these columns:

  • code – unique internal ID code.
  • from_airport – international code for the departure airport.
  • to_airport – international code for the arrival airport.
  • distanceroute distance, expressed in kilometers.
  • departure_time – planned departure time.
  • arrival_time – planned arrival time.