Introduction
ST_Equals
Relationships Between Geometries
ST_Distance and ST_Dwithin
Spatial joins practice
20. Spatial joins - exercise 2
Summary

Instruction

Nice job! Let's do one additional exercise of this kind.

Exercise

For each district, find the average number of households with a single parent per census block. Show two columns: district name and the average. Sort the results by the average in descending order.

Stuck? Here's a hint!

Use the AVG(...) function to find the average per census block.

Console

Code editor

Result

TableConsole