Top Earners

  • + 0 comments

    Use MySQL:

    SELECT (months * salary) AS earnings, COUNT(*)
    FROM employee
    GROUP BY earnings
    ORDER BY earnings DESC
    LIMIT 1;