How to read 2nd highest sal from EMP table?
Answer Posted / b.kumar
-- USING MS SQL SERVER
SELECT TOP 1 FROM
( SELECT DISTINCT TOP 2 FROM EMP ORDER BY SAL DESC) EMP
ORDER BY SAL ASC
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the full form of dql?
What is conditional split?
What are tables in sql server?
How to use subqueries with the exists operators in ms sql server?
Introduction of rollup clause using sum and group by clause?
Give the query of getting last two records from the table in SQL SERVER?
What are trace files?
How can I create a new template for import ? : sql server management studio
How do I create a partition table in sql server?
What are the 3 types of schema?
What is sql service broker?
How to find table changes in sql server?
How will you hide an attribute? : sql server analysis services, ssas
How to assign null values to variables or columns?
What are the different types of normalization?