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 are packages in pl sql and also explain its advantages?
Can a varchar be a primary key?
What is composite data type in pl sql?
What does partition by mean in sql?
How many joins in sql?
what is the difference between blob and text? : Sql dba
What are sql*plus environment variables?
Show the cursor attributes of pl/sql.
What packages are available to pl/sql developers?
what are wild cards used in database for pattern matching ? : Sql dba
What is the purpose of using pl/sql?
What is difference between left and right outer join?
what is union, minus and interact commands? : Sql dba
What is the difference between sql and isql*plus?
what is dbms? : Sql dba