how to find the second highest salary from emp table?
Answer Posted / praveen kumar.dandu
select a.sal,rank from(select sal,rank() over (order by sal
desc))a where rank=&n
<Here after printing the ranks we can retrieve we can
retreive what ever the rank we want>
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is sharding in sql?
what is sql profiler? : Sql dba
What normalization means?
How do you pronounce sql?
What is procedure explain with example?
What is sql table?
Explain the difference between sql and mysql.
Can we write dml inside a function in sql server?
What is #table in sql?
What is sql server and ase?
What are the uses of sysdate and user keywords?
what are the security recommendations while using mysql? : Sql dba
What is auto increment in sql?
what are the advantages of using stored procedures? : Sql dba
What is trigger explain with example?