Top Earners

Sort by

recency

|

3483 Discussions

|

  • + 0 comments

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

  • + 0 comments
    SELECT SALARY*MONTHS AS EARNINGS, COUNT(*) FROM EMPLOYEE
    GROUP BY EARNINGS
    ORDER BY EARNINGS DESC
    LIMIT 1
    
  • + 0 comments
    select max(salary*months), count(employee_id) from employee where salary*months=(select max(salary*months) from employee);
    
  • + 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;

  • + 0 comments
    SELECT
    CONCAT(
       MAX(salary*months)
        ,' '
        ,COUNT(name)
          )
    FROM Employee
    WHERE salary*months =  (SELECT MAX(salary*months) FROM Employee);