🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task 2:

Extract Geometry as JSON

PostGIS (PostgreSQL)
Retrieve the border's geometry of the Monaco from the countries table, and display it as JSON. 
Output two columns name and border_json.
Expected result Columns: 2 · Rows: 1
name border_json

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

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