PostgreSQL group by to get unique values and add a column
I have two tables like this: Table A id sum_value city 1 14 Paris 1 4 Paris 2 10 Berlin 3 68 Milan 4 51 London 3 2 Milan Table B id city geom 1 Paris MULTIPOLYGON(XXX) 2 Berlin MULTIPOLYGON(XXX)…