how to find the second highest salary from emp table?
Answer Posted / vikas
select * from(select e.*,row_number() over (order by
e.salary desc)rn from Employee e)where rn between 1 and 2
order by rn
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is rowid in sql?
What is record data type?
Does truncate free space?
Is primary key a clustered index?
what is meant by nl2br()? : Sql dba
Can a primary key be a foreign key?
Does truncate remove indexes?
What is relationship? How many types of relationship are there?
What are the rules to be applied to nulls whilst doing comparisons?
What is clustered and nonclustered index in sql?
What are the two types of exceptions in pl/sql?
What is a call statement? Explain with an example.
What is materialized view in sql?
Where is sql database stored?
Why do we use sql constraints?