Top Earners

  • + 0 comments

    in MySQL SELECT CONCAT(total_earnings, ' ', employee_count) AS result FROM ( SELECT (Salary * Months) AS total_earnings, COUNT(*) AS employee_count FROM Employee GROUP BY Salary * Months ORDER BY total_earnings DESC LIMIT 1 ) t;