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 / parth
select salary from eno where salary<(select avg(salary)
from eno ) and rownum < 6
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the difference between inner join and natural join?
What is the difference between syntax error and runtime error?
What is sql partition?
what are the different type of normalization? : Sql dba
Can you load data into multiple tables at once? : aql loader
How does index help in query performance?
Where do we use pl sql?
Determine if oracle date is on a weekend?
Which join is default?
What are the different set operators available in sql?
Define a temp table?
What are the datatypes available in pl/sql ?
Can you join a table to itself?
how to drop an existing table in mysql? : Sql dba
What is benefit of creating memory optimized table?