You are viewing a single comment's thread. Return to all comments →
SELECT CEILING(AVG(SALARY) - AVG(CAST(REPLACE(SALARY, '0', '') AS DECIMAL))) FROM EMPLOYEES;
This query is completing correct and it is giving exact output in local db. still i'm getting errors in this question.
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 CEILING(AVG(SALARY) - AVG(CAST(REPLACE(SALARY, '0', '') AS DECIMAL))) FROM EMPLOYEES;
This query is completing correct and it is giving exact output in local db. still i'm getting errors in this question.