How to find out the top 5 earners of company based on emp dept table?
SELECT DISTINCT ename,salfrom emp eWHERE 4>= (SELECT COUNT(DISTINCT sal) FROM emp a WHERE a.sal>=e.sal )ORDER BY sal DESC;