GeekInterview.com
Submitted Questions

Average department salary

Asked By: nirmal1in | Asked On: Feb 24th, 2010

How to get the employee details whose salary is less than the average salary of the department.

Answered by: dj_dj_dj on: May 20th, 2010

select emp_name, avg(salary)from employees group by emp_namehaving avg(salary) < (Select avg(salary)                &...

Answered by: g.sreemayee on: May 19th, 2010

SELECT * FROM emp e WHERE sal> (SELECT AVG(sal) FROM emp GROUP BY deptno HAVING deptno=e.deptno) ORDER BY deptno;

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: