I have a postgis spatial table with polygons in it, having an id (gid) and a geometry column named way (which actually stores the polygon boundary). The tablehead looks as follows:
|| gid (integer) | way (geometry) ||
Every column in this table is representing a polygon. Now I want to take two specific polygons out of this table (select them by the gid) and use ST_Contains() to test if one is contained by the other.
What is the SQL Syntax for this?