The Blunder

Sort by

recency

|

2074 Discussions

|

  • + 0 comments

    The question asks to generate the next integer which is 2253 so we need to use CEIL function in the query to find next integer and not the correct ans that is 2252.

    #

    **select ceil(avg(Salary)- avg(replace(Salary,'0',''))) from EMPLOYEES **

  • + 0 comments

    SELECT ceil(avg(Salary) - avg(REPLACE(Salary,'0',''))) FROM Employees;

    2252 IS SHOWING WRONG

  • + 0 comments

    SELECT ceil(avg(Salary) - avg(REPLACE(Salary,'0',''))) FROM Employees;

  • + 0 comments

    select ceil(avg(salary)-avg(replace(salary,"0",""))) from Employees;

  • + 0 comments

    SELECT CEIL(AVG(salary) - AVG(CAST(REPLACE(salary, '0', '') AS UNSIGNED))) AS error_amount FROM EMPLOYEES;