Top Earners

  • + 0 comments

    This worked for me. SELECT MAX(salary * months) AS max_earnings, COUNT(*) AS count_of_employees_with_max_earnings FROM Employee WHERE (salary * months) = (SELECT MAX(salary * months) FROM Employee);