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
Explain the methods used to protect source code of pl/sql.
What are the parts of a basic sql query?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
Explain the insert into statements in sql?
What is the difference between explicit and implicit cursors in oracle?
What are views in sql?
What are procedures used for?
How many clustered indexes can you have?
what is meant by urlencode and urldocode? : Sql dba
How do you optimize a query?
What is scalar and vector?
What does the argument [or replace] do?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is assignment operator in pl sql?
What is the purpose of my sql?