postgis-demo

PostGIS on Greenplum demo

View the Project on GitHub cantzakas/postgis-demo

Simple SQL Exercices

SQL, or “Structured Query Language”, is a means of asking questions of, and updating data in, relational databases. Here area some examples

In both cases, the query result would be similar to

version
PostgreSQL 8.3.23 (Greenplum Database 5.7.0 build commit:f7c6eb5cc61b25a7ff9c5a657d6f903befbae013) on x86_64-pc-linux-gnu, compiled by GCC gcc (GCC) 6.2.0, 64-bit compiled on Mar 30 2018 14:19:06
(1 row)
version
POSTGIS=”2.1.5 r13152” GEOS=”3.4.2-CAPI-1.8.2 r3921” PROJ=”Rel. 4.8.0, 6 March 2012” GDAL=”GDAL 1.11.1, released 2014/09/24” LIBXML=”2.7.6” LIBJSON=”UNKNOWN” RASTER
(1 row)
population
8,175,032.00
(1 row)
population
1,385,108.00
(1 row)
</table> ## Next module [Geometry (PostGIS) SQL exercises](https://github.com/cantzakas/postgis-demo/blob/master/GEO-POSTGIS-SQL.md)
boroname</td> white_pct</td>
Queens 39.72207739459101
Brooklyn 42.80117379326865
Manhattan 57.44930394804628
Staten Island 72.8942034860154
The Bronx 27.903744689944755
5 rows