i have a table
eno dno sal
1 10 200
2 10 150
3 10 100
4 20 75
5 20 100
i want to get sal which is less than the avg sal of thri dept.
eno dno sal
2 10 150
3 10 100
4 20 75
Answer Posted / rutujagabhane
select salary from emp
wher dno in (select dno
from dept
where salary < any
(select avg(salary)
from dept
where dept = 3)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to drop an existing table in mysql? : Sql dba
what is the difference between a web-garden and a web-farm? : Sql dba
How does left join work in sql?
What is informix sql?
How many sectors are in a partition?
What is a trigger word?
Does truncate free space?
What is a data manipulation language?
What is group function in sql?
What is date functions?
How to pipe multiline string to isql?
What is scalar function?
what is the difference between nested subquery and correlated subquery?
what is the functionality of the function htmlentities? : Sql dba
What is java sql drivermanager?