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 do you mean by “trigger” in sql?
What is sql used for?
What is the function that is used to transfer a pl/sql table log to a database table?
What is a full join sql?
Which is faster count (*) or count 1?
what is table? : Sql dba
What is the use of pl/sql table?
How many sql are there?
what is transaction? : Sql dba
how can I make a script that can be bi-language (supports english, german)? : Sql dba
How do I run a script in sql developer?
What is cascade in sql?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
how to include numeric values in sql statements? : Sql dba
what is query cache in mysql? : Sql dba