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 commit in trigger?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
Explain ttitle and btitle.
Can we write ddl statements in functions?
Can primary key be changed?
Is sql considered coding?
What are the different ddl commands in sql?
What is cost in sql execution plan?
What do you understand by pl/sql cursors?
What is difference between table and view?
What is the syntax to add a record to a table?
How long will it take to learn pl sql?
what is cross join? : Sql dba
What is an exception in PL/SQL? What are the two types of exceptions?
what is the difference between rownum pseudo column and row_number() function? : Sql dba