Write a query to find second highest salary of an employee.
Answer Posted / versaites
select top 1 emp_total_sal,emp_name from (
select top 2 emp_total_sal,emp_name from employee_table
ORDER BY emp_total_sal DESC) a
ORDER BY emp_total_sal ASC
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are the two virtual tables available at the time of database trigger execution?
What is rownum and rowid?
How many triggers can be applied to a table?
What is sql*loader and what is it used for?
Can ddl statements be used in pl/sql?
What is the difference between a query and a report?
what is 'mysqldump'? : Sql dba
Is progress software supports to ( pl/sql )?
Advantages and disadvantages of stored procedure?
What is the difference between a subquery and a join?
Explain polymorphism in pl/sql.
How do I run pl sql in sql developer?
what are the drivers in mysql? : Sql dba
Is grant a ddl statement?
What is the difference between numeric and autonumber?