How to compare the total salary of all employee with a individual employee salary for a particular department.

Showing Answers 1 - 3 of 3 Answers

SHEEL2006

  • Feb 26th, 2007
 

select  sum(salary) from  emp   minus     (select distinct(a.sal) from emp a where &n =(select  count(distinct(b.sal)) from emp b where a.sal<=b.sal)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions