Hello guys I want to create a dynamic table query to be updated on runtime. I have two postgis tables one that contains points--tablename(records) and one that contains polygons--tablename(OpDMA). This select query:
Create table Op_DMAConn as
SELECT pol.id as polygon_id, poi.id as point_id
FROM "OpDMA" pol
LEFT JOIN records poi ON (ST_Intersects(poi.geom, pol.geom))
returns the polygon_id polygons and point_id of the points. I would like this query to be executed on runtime!