How to read 2nd highest sal from EMP table?
Answer Posted / sheshu4040
SELECT MAX(EMP_SALARY) FROM EMP
WHERE EMP_SALARY NOT IN (SELECT MAX(EMP_SALARY) FROM EMP)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a scheduled job or what is a scheduled task?
When I delete any data from a table, does the sql server reduce the size of that table?
Explain the types of indexes.
Name few of the dcl commands in sql?
What is a trigger what are the advantages of trigger?
What is ms sql server triggers?
What is the primary use of the model database?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
Do you know what are the differences between lost updates and uncommitted dependencies?
What is difference between index seek vs. Index scan?
What is for xml in sql server?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
How to insert a new row into a table with "insert into" statements in ms sql server?
What are the rendering extensions of ssrs?
What is index in an assignment?