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
What is a pl/sql block?
How would you convert date into julian date format?
Explain the uses of control file.
What is case function?
What is a dynamic query?
Is vs as in pl sql?
What is rtm in testing?
How can a pl sql block be executed?
What is the example of procedure?
What is partition in sql query?
Can we insert data into view?
what are the drivers in mysql? : Sql dba
Is id a reserved word in sql?
Why should I use postgresql?
How to get unique records from a table?