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
Does a primary key have to be a number?
What does count (*) do in sql?
In a distributed database system, can we execute two queries simultaneously?
Explain how can you save or place your msg in a table?
How can you save or place your msg in a table?
How can you know that statistics should be updated?
describe mysql connection using mysql binary. : Sql dba
What is auto increment?
What is substitution variable?
What is the difference between sql and t sql?
How do I pipe the output of one isql to another?
Enlist the data types that can be used in pl/sql?
How to get help at the sql prompt?
Is sql a backend?
How would you reference column values before and after you have inserted and deleted triggers?