Re: Finding the closest value

2006-08-03 Thread Lee Goddard
Peter Brawley wrote: /Is there an efficient way to find the closest numerical value, across three columns? I do not know if there is a way to find it across one. / Not sure about efficiency, but if the criterion number is @n, do you mean ... SELECT LEAST( ABS(MIN(@n-col1)),

Finding the closest value

2006-07-31 Thread Lee Goddard
Is there an efficient way to find the closest numerical value, across three columns? I do not know if there is a way to find it across one. I thought about plotting the values in a geometric space, but that would seem to require more dimensions that the server can handle. I thought about