You are viewing a single comment's thread. Return to all comments →
Converting it to float before average, then back to integer finally got it to pass for me in SQL Server,
SELECT CONVERT(INTEGER, CEILING( AVG(CONVERT(FLOAT, SALARY)) - AVG(CONVERT(FLOAT, REPLACE(SALARY, '0', ''))) ) ) 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 →
Converting it to float before average, then back to integer finally got it to pass for me in SQL Server,