You are viewing a single comment's thread. Return to all comments →
select earnings, count(earnings) from (select name, months * salary as earnings from employee) as t group by earnings order by earnings desc limit 1;
select months* salary as earnings , count(*) from employee group by earnings order by earnings desc limit 1;
Seems like cookies are disabled on this browser, please enable them to open this website
Top Earners
You are viewing a single comment's thread. Return to all comments →
select earnings, count(earnings) from (select name, months * salary as earnings from employee) as t group by earnings order by earnings desc limit 1;
select months* salary as earnings , count(*) from employee group by earnings order by earnings desc limit 1;