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
define join and explain different type of joins? : Sql dba
What is the use of <> sql?
How much does a sql dba make? : SQL DBA
What is difference between nchar and nvarchar?
what is a table in a database ? : Sql dba
What is the difference between sql and mysql?
Does access use sql?
what is myisam? : Sql dba
What are the key differences between SQL and PL SQL?
What makes a good primary key?
what is union? : Sql dba
explain the difference between bool, tinyint and bit. : Sql dba
What are the advantages of sql? Explain
What is pl/sql language case sensitive?
explain the options of myisamchk to improve the performance of a table. : Sql dba