Deathsbain
Programmer
this is the situation --
i am creating a user defined function...
have a table with highvalue, lowvalue, percent fields.
will be passing in a value and need to get the percent field from a "between" the high/low values...
ok that works fine except one thing... what happens if there is a gap in the values? like say i have one record low=13, high=14, other record is low=16, high=17, and the value passed is 15....
is there a way to make it select the record information that has the highvalue that is closest (lower) to it? and how would i go about that?
please... any and all help would be appreciated.
Deathsbain -- have you hugged your undertaker today?
i am creating a user defined function...
have a table with highvalue, lowvalue, percent fields.
will be passing in a value and need to get the percent field from a "between" the high/low values...
ok that works fine except one thing... what happens if there is a gap in the values? like say i have one record low=13, high=14, other record is low=16, high=17, and the value passed is 15....
is there a way to make it select the record information that has the highvalue that is closest (lower) to it? and how would i go about that?
please... any and all help would be appreciated.
Deathsbain -- have you hugged your undertaker today?