<div>Hi Reena,</div>
<div> </div>
<div>SELECT t1.* FROM track_points1 as t1, track_points2 as t2  <br>WHERE st_distance(t1.the_geom,t2.the_geom) <= a;<br><br>Is that help ?</div>
<div> </div>
<div>Fred.</div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">On 8/29/08, <b class="gmail_sendername">S.Reena</b> <<a href="mailto:reena@indiamail.com">reena@indiamail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hello,<br><br>I have two tables track_points1 and track_points2 having wkb_geometry<br>columns. I want to make a query that can do this:<br>
<br>select * from track_points1 where wkb_geometry1 in ( select wkb_geometry2<br>from track_points2 where wkb_geometry1= wkb_geometry2 (+/-) a );<br><br>where a is any value (hexadecimal /integer)...<br><br>[basically i want to select one geometry that is in some range of<br>
another....]<br><br>Can any1 help?<br><br>Cheers,<br>Reena.<br><br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/Help-in-making-Complex-Query-tp19217346p19217346.html">http://www.nabble.com/Help-in-making-Complex-Query-tp19217346p19217346.html</a><br>
Sent from the PostGIS - User mailing list archive at Nabble.com.<br><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br>