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
‘Order by’ is not allowed in a view how can you sort information from a view?
How to create a user name in a database?
Why people hate cursor?
What is the difference between a view and a stored procedure?
What do you mean by normalisation?
What is cdc in sql server?
What kind of problems occurs if we do not implement proper locking strategy?
How important do you consider cursors or while loops for a transactional database?
 Explain what is sql override for a source taLle in a mapping?
Explain what is lock escalation and what is its purpose?
What is reference section?
Is null vs coalesce?
Give main differences between "Truncate" and "Delete".
How to check if stored procedure is running in sql server?
What does this statement do @@rowcount?