in reply to Re: Algorythm for searching closest neighbor
in thread Algorythym for searching closest neighbor

Well your select will find any number which contains your @query. So you will find
@query=54321 654321 or 543210 but you will not find 54320 for example
but when it's only numerical zip maybe the following will work:
select min(abs(zip-@query)) from zipcodetable
----------------------------------- --the good, the bad and the physi-- -----------------------------------

Replies are listed 'Best First'.
Re: Re: Re: Algorythm for searching closest neighbor
by one4k4 (Hermit) on Apr 03, 2001 at 17:25 UTC