select * from tab1 where startsal between '10' and '89' and Endsal between '2010' and '8800'
------------------------ StartSal EndSal ------------------------ 30 2011 60 2022 20 2011 15 2031 9 2047 8 3400 4 4500 2 5600 1 4600 20 3900 50 5100 70 6700 89 8800
select * from tab1 where startsal between 1 and 89 and Endsal between 2010 and 8800
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)