You are viewing a single comment's thread. Return to all comments →
SELECT CEIL(AVG(CAST(Salary AS DOUBLE)) - AVG(CAST(REPLACE(CAST(Salary AS CHAR),'0','') AS DOUBLE))); FROM EMPLOYEES; ??? Why it's wrong
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 →
SELECT CEIL(AVG(CAST(Salary AS DOUBLE)) - AVG(CAST(REPLACE(CAST(Salary AS CHAR),'0','') AS DOUBLE))); FROM EMPLOYEES; ??? Why it's wrong