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
Explain select statements in sql?
What is normalisation in sql?
How do you declare a variable in pl sql?
Why is %isopen always false for an implicit cursor?
how to convert dates to character strings? : Sql dba
Can a commit statement be executed as part of a trigger?
what are the advantages of using stored procedures? : Sql dba
What is the difference between joins?
what are the different type of normalization? : Sql dba
What is the life of an sql statement?
What is the difference between partition and index?
what is innodb? : Sql dba
how to include numeric values in sql statements? : Sql dba
What is server name sql?
Can we rollback after truncate?