Aggregation and sorting queries
These quick queries are useful, but often, you will need to manage more complex queries or access more than one table in your database.
Understanding census-designated places
Census-designated places are statistical entities used by the US Census Bureau. Think of unincorporated places with boundaries outside of incorporated places but relying on services provided to the general area. They are basically communities that look like cities.
We will start with something more interesting than locating an airport with b
included in its name. Let’s use the database manager query manager to write a simple SQL query. Select all the rows from our table. You can indicate an alias if you want to simplify the code, SELECT * FROM ch6."Census_Designated_Places_2020" c
, and now, any time you refer to the table, it can simply be c.geom
or c.name
, for example. I will start doing this practice as we move to complex queries but I find it can be...