Hi! Could we please enable some services and cookies to improve your experience and our website?
Privacy & Cookie Policy.Greetings, SQL lovers!
I am writing to you today because I need your help.
SQLtest.online is a free platform designed to help people of all levels master SQL.How you can help:
The more people use the platform, the better it will become. We'll be able to add more content, improve features, and create a better community for SQL enthusiasts.
Thanks for your help!
Command SQLtest.online
Write a SQL query to calculate the area of China in square kilometers using geospatial functions. Round the final result to the nearest integer.
Output one column: area_sq_km — the area of the country in square kilometers.
Use PostGIS (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.The Countries database is designed for geographic and geopolitical data analysis. It contains spatial information about countries and their capitals, suitable for GIS applications and spatial queries.
id | name | geom |
---|---|---|
1 | France | MultiPolygon(...) [SRID=4326] |
id | name | country_id | geom |
---|---|---|---|
1 | Paris | 1 | Point(...) [SRID=4326] |