I'm trying to make a join between two tables in SQL with 1: M relation. A table ejecutado_unificado_2018
is a dataset without geographic information and the dataset sectores_limpieza_2018
comes from a shapefile. When I do the join, I do not recognize the cartodb_id
or the geometry when I use the_geom_webmercator
. I would like to know my mistake.
SELECT sectores_limpieza_def2.the_geom AS the_geom_webmercator,
sectores_limpieza_def2.cartodb_id
FROM ejecutado_unificado_2018
JOIN sectores_limpieza_def2
ON sectores_limpieza_def2.codigo=ejecutado_unificado_2018.codigo