We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
SELECT CAST(CEILING(CAST(AVG(SALARY) AS DECIMAL(10,2))- AVG(CAST(REPLACE(CAST(SALARY AS VARCHAR(10)),"0","") AS DECIMAL(10,2)))AS INT) FROM EMPLOYEES;
can anybody help whats wrong in my query?
Cookie support is required to access HackerRank
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 CAST(CEILING(CAST(AVG(SALARY) AS DECIMAL(10,2))- AVG(CAST(REPLACE(CAST(SALARY AS VARCHAR(10)),"0","") AS DECIMAL(10,2)))AS INT) FROM EMPLOYEES; can anybody help whats wrong in my query?