select case when country='USA' then to_number(value,10,3) else to_number(Value,10,2) from emp_country;
Expected output:
value country
100.310 USA
100.32 UK
select case when country='USA' then to_number(value,10,3) else to_number(Value,10,2) from emp_country;
Expected output:
value country
100.32 UK