⚠️ Today is the last day to secure next month's service! Donate now →
SQL code copied to buffer
RU PT FR
Task 117:

Find the fastest flight

Find the fastest flight option between Pulkovo Airport (LED) and Bryansk Airport (BZK) (with one transfer) on the date August 16, 2017. For time calculations, use the fields scheduled_departure and scheduled_arrival
Display a table with fields:
     flight1_no - code for the first flight, 
     departure_airport - departure airport code, 
     connection_airport - transfer airport code,
     flight1_time - first flight duration,
     connection_time - waiting time,
     flight2_no - code for the second flight,
     arrival_airport - airport code,
     flight2_time - second flight duration,
     total_trip_time - total trip time.

Use PostgreSQL syntax to write your answer. Descriptions of tables are provided in the right pane.

Write your request in the field below and click the "Check it!" button.
Get hint
Copy code Clear editor

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.