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
How do I run a pl sql procedure in sql developer?
What is sql used for?
What are sql injection vulnerabilities?
What is the sql query to display the current date?
what is data manipulation language? : Sql dba
What is consistency?
Explain what is a field in a database and record in a database?
How do I find duplicates in sql?
What is the use of & in pl sql?
what are the advantages of sql ? : Sql dba
what is the difference between primary key and unique key? : Sql dba
Write a unique difference between a function and a stored procedure.
can a stored procedure call itself or recursive stored procedure? : Sql dba
How do you declare a user-defined exception?
What is execution plan in sql?