Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / swapnil tikale
Select top 1 salary from (select distinct top 2 salary from employee order by salary desc) as sal order by salary ;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what happens if you no create privilege in a database? : Sql dba
Why truncate is used in sql?
What is scalar and vector?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
What is difference between pl and sql?
What is the difference between partitioning and sharding?
What are transaction and its controls?
Why are sql stored procedures used?
What is write ahead logging in sql server?
What are inner and outer joins examples of both?
Explain what is a subquery ?
what is a materialized view? : Sql dba
What is exit statement?
Which function is used to return remainder in a division operator in sql?
What is posting?