Yeh, and it appears that I have no answer to your problem. Ray Thompson Tau Beta Pi (www.tbp.org) The Engineering Honor Society 865-546-4578
-----Original Message----- From: Phill B [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 3:18 PM To: SQL Subject: Re: zip code search problems 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 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2102 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=11502.10531.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
