select 35+(50-35) * (CONVERT(DECIMAL(4,2), 20) / CONVERT(DECIMAL(4,2), 50)) as tt
select sname,35+((50.0-35.0)*(20.0/50.0)) as tt from student
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)