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 / madhu
select * from emp where sal<(select avg(sal) from emp where
eno in(2,3,4))
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we insert delete data in view?
What is the difference between truncate and drop statements?
Can we join two tables without common column?
What is an example of translating a date into julian format?
Is sql a microsoft product?
What is sql*loader?
Show the cursor attributes of pl/sql.
What is full join in sql?
What is the difference between unique and primary key constraints?
how is myisam table stored? : Sql dba
how to add a new column to an existing table in mysql? : Sql dba
What is a record in a database?
What is the most restrictive isolation level? : Transact sql
What information is needed to connect sql*plus an oracle server?
Why we use joins in sql?