Skip to main content
2 of 2
edit sql
ramiroaznar
  • 4.4k
  • 2
  • 15
  • 29

As far as I have tested, it looks like the problem could be the cartodb_id. Follow these steps, and you should get the union right:

  • First, I recommend applying this query in the dataset view:
SELECT 
  max(cartodb_id) as cartodb_id, 
  area_zip_r, 
  ST_union(the_geom) as the_geom
FROM 
  zip_rollup_w_modulus_id_copy_1
GROUP BY 
  area_zip_r
  • Secondly, create a new dataset from the query.
  • If you count the number of features, the result will be the expected: 2715.
ramiroaznar
  • 4.4k
  • 2
  • 15
  • 29