how to find the second highest salary from emp table?
Answer Posted / raju
select top 1 sal from emp
where sal not in (select top 1 sal from emp order by sal
desc ) order by sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the usages of sql?
Do stored procedures prevent sql injection?
What is a temporal table?
How many types of cursors are available in pl/sql?
How do I debug a stored procedure?
Is truncate ddl or dml?
Sql technical questions
What are sql ddl commands?
Explian rowid, rownum?
What is pl sql and why it is used for?
What is the purpose of a secondary key?
Explain the difference between drop and truncate commands in sql?
What does fetching a cursor do?
What is bulk collect in pl sql?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?