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
What is a field name?
How to get a list of columns in a view using the "sp_columns" stored procedure?
What are the different types of collation sensitivity?
How to define and use table alias names in ms sql server?
Do you know what is a with(nolock)?
What are the various editions of sql server 2017 that are available in the market?
Is it possible to update the views? If yes, how, if not, why?
How do I know if localdb is running?
How to list all triggers in the database with sys.triggers in ms sql server?
Explain what is the main purpose of having conversation group?
List the data types available in mssql?
Define cross join in sql server joins?
What is change data capture (cdc) in sql server 2008?
How do we Backup SQL Azure Data?
What is the contrast amongst drop and truncate?