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 does select count (*) mean in sql?
What are the types of subqueries?
how many values can the set function of mysql take? : Sql dba
What is the difference between partition and index?
Can we commit inside a trigger?
what is a view? : Sql dba
what is heap table? : Sql dba
What are different types of indexes?
How do I send sql query results to excel?
what are all types of user defined functions? : Sql dba
Is sql easier than java?
How do I run a program in pl sql?
What are schema-level triggers?
What is trigger in pl sql with examples?
What is dba in sql? : SQL DBA