how to find the second highest salary from emp table?
Answer Posted / barochia dharmesh
select Income from (
select Rank() over(order by Income desc) topRecord, Income
from (select distinct Income from tblName) tbl ) tbl2
where topRecord = 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is loop in pl sql?
What is trigger and how to use it in sql?
How do I view a sql database?
where are cookies actually stored on the hard disk? : Sql dba
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is the usage of the distinct keyword?
Does postgresql run on the cloud?
Is sql a backend language?
how to use like conditions? : Sql dba
How many types of cursors are available in pl/sql?
What are the different types of sql commands?
What is t-sql? : Transact sql
Does truncate table reset auto increment?
Why use subqueries instead of joins?
How do you copy a table in sql?