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
How many functions are there in sql?
how to create a new table by selecting rows from another table in mysql? : Sql dba
How do I view a sql trace file?
How does sql*loader handles newline characters in a record? : aql loader
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
what are the drivers in mysql? : Sql dba
What is replication id?
what is schema? : Sql dba
What is embedded sql in db2?
How do I edit a trigger in sql developer?
What is pl sql variable?
What are inner and outer joins examples of both?
Is a view faster than a stored procedure?
How to revise and re-run the last sql command?
What are sql functions? Describe in brief different types of sql functions?