Hi Guru's

I need your help to build sql statement. Please help. I have a table contain two columns.

COL_1 COL_2
2 10
7 5
8 15
10 20
9 25

I want a query which should check the range(COL_1) first and then return the least (COL_2) within that range of COL_1.

For Example If I give input for COL_1 as 5 it should return me value of COL_2 5.

I am using Oracle 8i.

Thanks In Advance.