Can you post the query execution plan? It sounds like you forgot to add an index. That or the you're killing the optimizer with the "SELECT *"; bookmark lookups can kill a DB.
>I've got my zip code database proximity thing all figured out. I have a >nice getdistance function that calcs the distance between two zip codes. > >It returns a result set containing all the zip codes within 25 miles of >27502. > >But I can't use that in an IN clause... so what do I do? > >Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268987 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4