<br><br><div class="gmail_quote">Hi all,<br><br>I have two tables; provinces an points of interests. I wanna update province_id column with st_intersects function..<br><br>My sql;<br><br>update poi set province_id=(<br>select province.ogc_fid from province,poi where intersects(poi.the_geom, province.the_geom)=True group by province.ogc_fid<br>
)<br><br></div>The message is <br>
<br>
ERROR: more than one row returned by a subquery used as an expression<br>
<br>
What should I change?