Dear friends,
i have a situation where I am supposed to find the immediate lower and the immediate higher values for a user input value. How to write the query for the same?
Example: The user input is 140, in the table I have values 135,137,138,142,143. The expected results are (138 and 142).
i have a situation where I am supposed to find the immediate lower and the immediate higher values for a user input value. How to write the query for the same?
Example: The user input is 140, in the table I have values 135,137,138,142,143. The expected results are (138 and 142).