Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sohail
select empno,ename,sal
from (select ename,empno,sal,dense_rank()
over(order by sal desc)topn
from emp)
where topn=2
| Is This Answer Correct ? | 69 Yes | 46 No |
Post New Answer View All Answers
Can we rollback delete command?
What is record type in pl sql?
does sql support programming? : Sql dba
What is the trigger in sql?
Can you join a table to itself?
How can check sql version from command line?
What are the operators used in select statements?
What is field delimiter?
Which sql most popular?
What is 19 null in sql?
What pl/sql package consists of?
What is a primary key sql?
What is the difference between alter trigger and drop trigger statements?
What is oracle and pl sql?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?