To find second largest salary in Employee table
Answer Posted / saravanakumar
SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN
(SELECT MAX(SALARY) FROM EMPLOYEE)
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
How to count duplicated values in a column in ms sql server?
Write the syntax for stuff function in an sql server?
can an order by clause be used in a creation of a view?
What is sub-query in sql server? Explain its properties.
How to enable/disable indexes?
What is clustered primary key?
What is sqlcmd?
What is transaction server consistency?
Explain syntax for dropping triggers?
How you would rewrite the sql query to return the customerid sorted numerically?
What are the advantages of using cte?
What is report rendering ?
What is the maximum size of a dimension? : sql server analysis services, ssas
What are the new data types are introduced in sql 2000?
What is subquery in sql?