The Blunder

  • + 0 comments

    WITH CTE AS (SELECT cast(Salary AS DECIMAL (7,2)) AS actual,CAST(REPLACE(Salary, '0', '') AS DECIMAL (7,2) ) AS Differ FROM EMPLOYEES) SELECT CEILING(AVG(actual)-AVG(Differ)) FROM CTE;