how to get the second max val for every group in a table
Answer Posted / suman rana
select * from emp e where 2 = ( select count(distinct sal)
from emp e1 where e1.deptno = e.deptno and E.SAL <= E1.SAL)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to call a sub procedure?
What are privileges and grants?
What to do if dba lost the system password?
What are the execution control statements in oracle?
What is meant by joins? List out the types of joins.
State the difference between a primary key and foreign key?
How to rename an existing table?
How to convert dates to characters in oracle?
What is ceil and floor in oracle?
What are the attributes of cursor?
What is a initialization parameter file in oracle?
Explain user account with reference to oracle.
What is the difference between postgresql and oracle?
A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.
What are the numeric comparison operations?