consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.
Answer Posted / sonal
select * from (select ename, deptno,sal
from emp where deptno in(10 , 20)
order by sal desc)
where rownum < =1
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Why do we use cursors?
what is a table in a database ? : Sql dba
What is application trigger?
How do I install sql?
Why do we use sql constraints?
How to revise and re-run the last sql command?
What is rank function in sql?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
What schema means?
how can we repair a mysql table? : Sql dba
What is the starting oracle error number?
What does a pl/sql package consist of?
Which one is better subquery or joins?
What is full join?
Explain how to use transactions efficiently : transact sql