New month, new goals. Your help keeps the project moving forward. 🖥️ Support sqltest →
SQL code copied to buffer
Task 106:

Extract Airport Data as JSON

PostgreSQL
Your objective is to extract data from the airports_data table. Specifically, retrieve the airport_code along with a JSON object that includes the city name in English (from the city column) and the airport name in English (from the airport_name column). 
The output should have two columns: airport_code and airport_data, formatted as follows: {"city": "Yakutia", "name": "Polyarny Airport"}.

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

Get hint
Copy code Clear editor
The query result will appear here. Ctrl+Enter - Run query

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

Privacy & Cookie Policy.