Top Earners

  • + 0 comments

    This worked fine for me: SET @earnings = (SELECT MAX(salary * months) FROM employee); SELECT @earnings AS max_earnings, COUNT(*) FROM employee WHERE salary * months = @earnings;