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


Please Help Members By Posting Answers For Below Questions

what is meant by nl2br()? : Sql dba

566


Mention what is the plv (pl/vision) package offers?

639


How do I find duplicates in a single column in sql?

536


Write the command to remove all players named sachin from the players table.

738


What trigger means?

566






Sql technical questions

777


what is bcp? When does it used? : Sql dba

526


What is a relationship and what are they?

580


Can cursors be part of a trigger body?

1120


What is restrict in sql?

556


What is data abstraction in sql?

513


Do ddl statements need commit?

540


Why do we use sql constraints?

662


How do I start sql from command line?

534


What is keys and its types?

542