<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,</div><div dir="ltr">I have 2 tables containing polygons in same general area. What I want is the count of polygons in the first table (Table_1, represented by purple) that intersect with polygons in the 2nd (Table_2, represented by green). <div><div><img src="cid:ii_jw0dktzu1" alt="Screenshot from 2019-05-23 13-33-24.png" width="542" height="193"><br></div><div>For the above example, I want the output as 1. I have tried - </div><div>SELECT COUNT(*) FROM Table_1,Table_2 WHERE ST_Intersects(Table_1.wkb_geometry,Table_2.wkb_geometry);<br></div><div><br></div><div>This command returns the answer 3 which doesn't work for me.</div><div>Could someone please suggest relevant command.</div><div>Thanks in advance.</div><div><br></div><div><div><span style="font-family:arial,helvetica,sans-serif;color:rgb(136,136,136);font-size:12.8px">Regards,</span><br></div><div><div dir="ltr" class="m_-2085737487985395795gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px;color:rgb(136,136,136)"><div><span style="font-family:arial,helvetica,sans-serif">Sarthak Vijay</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>