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 are the types of ssrs?
What is compression - row-level and page-level compression?
What the difference between UNION and UNIONALL?
What is replication with database mirroring? : sql server database administration
What are the instances when triggers are appropriate?
What happens if null values are involved in datetime operations?
What is difference between count (*) and count column?
Explain the steps needed to create a scheduled job?
How are the unique and primary key constraints different?
How many types of functions are there in sql server?
Do you know nested transaction?
What does COMMIT command do?
How to use subqueries with the exists operators in ms sql server?
What is query processing?
Can I save my report as html, excel or word? : sql server management studio