rodolpheg

Untitled

Feb 25th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. SELECT
  2. avg(montreal_postgis.rev)::Integer AS avg_rev,
  3. quartier_socio.q_socio,
  4. quartier_socio.geom
  5. FROM
  6. montreal_postgis
  7. JOIN quartier_socio ON
  8. ST_Intersects(montreal_postgis.geom, quartier_socio.geom)
  9. GROUP BY quartier_socio.q_socio, quartier_socio.geom
  10. Order By avg_rev desc;
Advertisement
Add Comment
Please, Sign In to add comment