how to get second highest salary in SQL(as/4000
Answer Posted / devi
select sal from (select sal,rank() over(order by sal desc)
as rank from emp) where rank>1 and rank<3
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the benefits of triggers?
what are the type of locks ? : Sql dba
What are triggers and its types?
What is on delete restrict?
Can pl sql procedure have a return statement?
What is identity column in sql server?
How do you delete a table?
What is the need of a partition key?
What do you mean by stored procedures?
what is the difference between sql and t-sql? : Transact sql
What is AUTH_ID and AUTH_USER in pl/sql ?
What are sql*plus environment variables?
How to find 3rd highest salary of an employee from the employee table in sql?
What is form and report?
What is asqueryable?