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 / vin
select * from emp group by deptno having sal < avg(sal)
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Does oracle roll back the transaction on an error?
what are the properties and different types of sub-queries? : Sql dba
describe mysql connection using mysql binary. : Sql dba
Are left and right joins the same?
what is oltp (online transaction processing)? : Sql dba
How does rowid help in running a query faster?
Why do we need unique key in a table?
What do you mean by stored procedures?
Explain ttitle and btitle.
Do we need commit after truncate?
What is the plv (pl/vision) package offers?
What is the starting oracle error number?
Which is faster truncate or drop?
What is primary key and unique key?
How many types of triggers are there in pl sql?