You are viewing a single comment's thread. Return to all comments →
in sql server, I needed multiple casting
select cast(ceiling((avg(cast(salary as float))) - avg(cast(replace(cast(salary as varchar),'0','') as float))) as integer) from employees
Seems like cookies are disabled on this browser, please enable them to open this website
The Blunder
You are viewing a single comment's thread. Return to all comments →
in sql server, I needed multiple casting