Re: [SQL] performance issue with distance function

2001-07-26 Thread Jeff Hoffmann
Ryan Littrell wrote: > > I am trying to execute the following command: > > SELECT R.*, distance(L1.lat, L1.lon, L2.lat, L2.lon) AS Distance > FROM Restaurants R, Locations L1, Locations L2, FoodTypeRestaurantIDX FTR > WHERE R.Zipcode=L1.Zipcode AND L2.Zipcode = '93705' AND R.Delivery=true AND >

[SQL] performance issue with distance function

2001-07-26 Thread Ryan Littrell
I am trying to execute the following command: SELECT R.*, distance(L1.lat, L1.lon, L2.lat, L2.lon) AS Distance FROM Restaurants R, Locations L1, Locations L2, FoodTypeRestaurantIDX FTR WHERE R.Zipcode=L1.Zipcode AND L2.Zipcode = '93705' AND R.Delivery=true AND R.RestaurantID=FTR.RestaurantID AND