 		SUM(ST_AREA(sector.geom)/10000) AS sector_area,
 		COUNT(sector.geom) AS sector_count,
 		la.area_ha AS area_ha
-	FROM	orig_geo_rli.osm_deu_polygon_urban_sector_2_retail_mview AS sector,
-		orig_geo_rli.osm_deu_polygon_urban_buffer100_unbuffer AS la	
+	FROM	orig_geo_ego.osm_deu_polygon_urban_sector_2_retail_mview AS sector,
+		orig_geo_ego.osm_deu_polygon_urban_buffer100_unbuffer AS la	
 	WHERE  	la.geom_buffer && sector.geom AND
 		ST_CONTAINS(la.geom_buffer,sector.geom)
 	GROUP BY la.uid

---------- ---------- ----------

-- "Calculate Sector Retail"   (OK!) -> 177.000ms =10.157
UPDATE 	orig_geo_rli.osm_deu_polygon_urban_buffer100_unbuffer AS t1
SET  	sector_area_retail = t2.sector_area,
	sector_count_retail = t2.sector_count,
	sector_share_retail = t2.sector_area / t2.area_ha

---------- ---------- ----------

-- "Calculate Sector Industrial"   (OK!) -> 35.000ms =21.033
UPDATE 	orig_geo_ego.osm_deu_polygon_urban_buffer100_unbuffer AS t1
SET  	sector_area_industrial = t2.sector_area,
	sector_count_industrial = t2.sector_count,
	sector_share_industrial = t2.sector_area / t2.area_ha
