I need to select some records from a table according to my conditions. simply i need to do like this.
SELECT g.intds_intratechange
case when g.intds_intratechange='0.5% Up to 1%'
then g.intds_intratechange='ddd'
end
FROM glinfo.ref_tblintratefordesignation g
WHERE g.intds_designation =(select s.STR_OFF_TYPE from dpg.inf_responsible_maildetails s where s.STR_USER_CODE='10020336')
in above table, there are 3 values. "0 t0 0.5" , "0.5 to 1" and "more than 1". I need to filter records from my select accoring to above values. like if value is "0 to 0.5" then select first 10 records. need a way to solve this. this code says "cannot founf from keyword where it expected"