I have a table with a column of numbers that are consecutive but not concurrent. So 91 may be followed by 92 or it may be followed by 96, for example) with intervening numbers not in the column.
I want to search on this column for a particular number and then return the entire row if it is found. If the number is not found I want to return the row with the lower number.
So using the example above if I search for 95, which won't be found, I want to return the row with the number 91 in it.
I presume this must be possible but I just can't work out how to do it.