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 are the benefits of stored procedures?
What are the popular database management systems in the it industry?
when MSQL8.0 is in market
What are the qualities of 2nf?
What are the types of variable use in pl sql?
How is indexing done in search engines?
define join and explain different type of joins? : Sql dba
What is a table in a database?
what are date and time data types in mysql? : Sql dba
Compare sql & pl/sql
What is a parameter query?
Is pl sql and postgresql same?
What are sql data types?
Why coalesce is used in sql?
What are secondary keys?