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 can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
Explain the use of analyse option in exp command.
What exactly do quotation marks around the table name do?
What are the parameters that we can pass through a stored procedure?
How to create a server parameter file?
What is query image?
How would you change old and new values in an insert, delete and update triggers?
Explain table?
What is an oracle table?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What is a tns service name?
What is the difference between postgresql and oracle?
What are the limitations oracle database 10g xe?
What is connection pool in oracle?
What are the attributes of cursor?