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
Can you join views in sql?
Is it possible for a table to have more than one foreign key?
Does sql view stored data?
Where is all the data on the internet stored?
What is normalization in a database?
Why we use triggers in mysql?
How do you concatenate in sql?
What are % type and % rowtype?
What are tuples in sql?
What is cascade in sql?
Is sql open source?
Define select, insert, create, delete, update, drop keywords
What is the purpose of cursors in pl/sql?
What are the benefits of pl sql?
How to sort the rows in sql.