We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Aggregation
- Top Earners
- Discussions
Top Earners
Top Earners
Sort by
recency
|
3340 Discussions
|
Please Login in order to post a comment
select max(months*salary),count(*) from employee where months*salary = (select max(months*salary) from employee);
SELECT MAX(salary*months)AS MAX_SALARY, COUNT(employee_id) FROM Employee WHERE salary*months = (SELECT MAX(salary*months) FROM Employee);
SELECT months * salary as earnings , COUNT(*) AS employee_count FROM Employee GROUP BY earnings ORDER BY earnings DESC LIMIT 1 ;
select concat(max(salary * months)," ", count(*)) from employee where salary*months = (select max(salary * months) from employee);