If this helps, here is the query now running it based off of one zip code only. I just need to be able to adapt it to recursively search through a table of zip codes.Select top 5 l.techname, maxdrivingdistance as [Max Distance], DEGREES(ACOS(SIN(RADIANS(z.Latitude1)) * SIN( RADIANS(t.Lat)) + COS(RADIANS(z.Latitude1)) * COS(RADIANS(t.Lat)) * COS(RADIANS(convert(float, z.Longitude1) - convert(float, t.Long))))) *60*1.1515 AS 'Distance' from ZipCodes zLeft Outer Join techziplatlong ton t.Zip > 0left outer join distechname lon l.techname = t.technameWHERE z.Zip = '97005'order by distance