🙏 We need your help! SQLtest.online lives on donations. Donate any amount and ads turn off for your account. Donate now →
SQL code copied to buffer
Task 64:

Seat Map for a New Airbus

PostgreSQL
The airline has received an Airbus A320neo: it is already in the aircrafts table with the code 32N, but it has no seats yet. Its cabin is the same as the Airbus A320-200 (code 320).
With one statement, add to the seats table a copy of every seat of the 320 aircraft for the 32N aircraft: the same seat_no and fare_conditions.
Expected result Columns: 4 · Rows: 2
aircraft_code fare_conditions seats same_as_320

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial

By checking a query, you agree that it is stored without your account details and may be included in anonymized datasets, including for AI training. Learn more

The query result will appear here. Ctrl+Enter - Run query