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 is a mutating table and a constraining table?
Are sql database names case sensitive?
What is the max nvarchar size?
How to avoid using cursors?
Which is better trigger or stored procedure?
What is using in sql?
what happens if you no create privilege in a database? : Sql dba
what is a control file ? : Sql dba
How do you pronounce sql?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
How do you write a subquery?
What is a clob in sql?
How does pl sql work?
How to find 3rd highest salary of an employee from the employee table in sql?
how to create a new view in mysql? : Sql dba