How to read 2nd highest sal from EMP table?
Answer Posted / gali kondareddy
SELECT * FROM EMP WHERE SAL =(SELECT MIN(SAL) FROM EMP WHERE SAL IN (SELECT TOP 2 SAL FROM EMP ORDER BY SAL DESC))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is there any difference between primary key and unique with the not null condition?
What is the difference between insensitive and scroll cursor?
What is the parse query button used for?
what is blocking? : Sql server database administration
Explain the concepts and capabilities of sql server?
Why the trigger fires multiple times in single login?
What is the difference between a stored procedure and a user defined function?
Is it possible to have clustered index on separate drive from original table location?
What options are available to audit login activity? : sql server security
what do you understand by change data capture?
Why do we use stored procedures in sql server?
What is the xml datatype?
What is policy management?
What is sql server database?
What are the High-Availability solutions in SQL Server and differentiate them briefly?