
October 5th, 2011, 04:32 AM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 6
Time spent in forums: 1 h 49 m 20 sec
Reputation Power: 0
|
|
|
Best solution for this query
Hi
I would like to write a query to return a number associated to the closest match of another.
I'll try and explain properly.
I have 4 rows: 250,450,650,850
Each of those has a value attached e.g. 1,4,6,9
I would like to return 1 if someone chosses a number between 250 and 450, 4 if 450 to 650 etc
Appreciate any help
|