how to find the second highest salary from emp table?
Answer Posted / dakshin
select * from (select a.*,dense_rank() over (order by sal) rnk from emp a order by sal) where rnk =2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sql indexing?
Can you selectively load only those records that you need? : aql loader
Mention what is the use of function "module procedure" in pl/sql?
What is sqlerrm?
what happens if null values are involved in expressions? : Sql dba
How to rename a table?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
how do you tune the slow running queries in oracle db , explain the methodology
What is group function in sql?
What is the difference between left join and right join?
Where is sql database stored?
What are character functions in sql?
What is a function in oracle pl sql?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
How many types of triggers exist in pl/sql?