You are viewing a single comment's thread. Return to all comments →
SELECT Ceiling(AVG(salary-REPLACE(salary, '0', ''))) from EMPLOYEES;
Calculate the differences first, and then apply the avg, and then ceilling
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-REPLACE(salary, '0', ''))) from EMPLOYEES;
Calculate the differences first, and then apply the avg, and then ceilling