how to calcuate the second highest salary of he employee
Answer Posted / sachin s. patil
SELECT SAL FROM
(SELECT ROWNUM DD, M.* FROM
(SELECT SAL FROM EMP order by sal desc )M)
WHERE DD=2/***HERE U CAN ADD ANY NUMBER (WHERE I PUT 2)
, U WILL GET HEIGHEST SALARY THAT POSITION *******/
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?
Can we use update in sql function?
What does subquery mean in sql?
what is difference between delete and truncate commands? : Sql dba
What is dbo in sql?
What is left join example?
What is column?
tell me about various levels of constraint. : Sql dba
What is dense_rank?
What is a scalar value in sql?
Is foreign key mandatory?
What is loop in pl sql?
What are transaction and its controls?
Can you have more than one trigger on a table?
How many triggers can be applied on a table?