how to calcuate the second highest salary of he employee

Answer Posted / sachin s. patil

SELECT * FROM
(SELECT ROWNUM DD, M.* FROM
(SELECT SAL FROM EMP order by sal desc )M)
WHERE DD=2

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a system versioned table?

546


What is varray in pl sql?

574


What is lexical units in pl sql?

589


What is cursor in pl sql?

584


What is sql prepared statement?

556






how can we destroy the session, how can we unset the variable of a session? : Sql dba

558


What is a procedure in pl sql?

561


How do I access sql anywhere database?

508


Why do we use partitions in sql?

553


Does postgresql run on the cloud?

604


What is use of trigger?

519


Compare sql & pl/sql

618


What are the different types of tables in sql?

495


How can you create an empty table from an existing table?

602


What is consistency?

721