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 / ajit
select eno, dno, sal
from test
group by eno, dno, sal
having sal <any ( select avg(sal) from test )
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how many ways to get the current time? : Sql dba
What is the default isolation level in sql server? : Transact sql
what are the different tables present in mysql? : Sql dba
How do you optimize a stored procedure in sql?
How do I edit a trigger in sql developer?
what are different types of keys in sql?
When is the explicit cursor used ?
How to display the current date in sql?
How do I start sql from command line?
What found sql?
How to fetch alternate records from a table?
What is a boolean in sql?
Is sql free?
Does group by remove duplicates?
what is single byte over head in oracle..?