Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search database by longitude and latitude

776778Aug 20 2010 — edited Aug 23 2010
We have a table that has lat-long data for each row.

We need to write a query that performs a search to find all pit location within the provided radius e.g. 1 mile, 5 miles etc.

We have the following query for this purpose:

***Parameters***

Longitude: -74.008680
Latitude: 40.711676
Radius: 1 mile

can someone help me how to do this, wrte a query to do search
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2010
Added on Aug 20 2010
13 comments
5,283 views