Top Earners

  • + 0 comments

    SELECT MAX(E.SALARY * E.MONTHS) AS MAX_TOTAL_EARNINGS, COUNT(*) AS NUM_EMPLOYEES_WITH_MAX_TOTAL_EARNINGS FROM EMPLOYEE E WHERE E.SALARY * E.MONTHS = (SELECT(MAX(E.SALARY * E.MONTHS)) FROM EMPLOYEE E);