I'm not sure if I understand your question but I'll try to answer it just the same.
I have two tables and a view. One has all the dealer info including zip code. The other table has all the zip codes with their latitude and longitude. I then join the two tables to make a view named dealer_geo. What happens next is I query the view. I create a column named distance that has the distance in miles from the starting zip code. As part of my where clause, I only select the records that are less than or equal to the passed radius. I hope that helps. :-\ On Fri, 28 Jan 2005 15:00:24 -0500, Ray Thompson <[EMAIL PROTECTED]> wrote: > OK. But where do you get the information from the database when you are > selecting? It would appear to me that you need to use the zip code > information in the records, pass those through the great circle calculation, > then order the output based on the distance between the two points. > > Ray Thompson > Tau Beta Pi (www.tbp.org) > The Engineering Honor Society > 865-546-4578 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase Dreamweaver with Homesite Plus from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=54 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2101 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
