Write a query to find second highest salary of an employee.

Answer Posted / kitcat

SELECT salary
FROM (SELECT salary FROM emp
ORDER BY DESC salary)
WHERE RowNum=2

Is This Answer Correct ?    1 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between rank () row_number () and dense_rank () in sql?

579


Can a composite key be null?

530


Do prepared statements prevent sql injection?

531


What are pl sql data types?

551


how to create a new table by selecting rows from another table in mysql? : Sql dba

563






What is sqlerrm?

548


Is sql port 1433 encrypted?

578


What is the starting oracle error number? What is meant by forward declaration in functions?

544


Can a table contain multiple foreign key’s?

575


What is the difference between pl and sql?

545


What is mdf ldf and ndf?

563


Explain the update statement in sql

562


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

620


What is scope of pl sql developer in future?

595


Why do we use cursors?

511