I want to intersect two polygons; they are in two tables stored in PostgreSQL. The names are "poligono" and "categorias_eot_paramo", respectively.
I am using the next simple syntax because I want to check the results where polígono intersect categorias_eot_paramo with the attributes from table categorias_eot_paramo.
SELECT ST_AsText(ST_Intersection(poligono.geom, categorias_eot_paramo));
and then, I got the next error:
ERROR: missing FROM-clause entry for table "poligono"
LINE 1: SELECT ST_AsText(ST_Intersection(poligono.geom, categorias_e...
^
SQL state: 42P01
Character: 34
FROM
some_table in your statement.