Answer Posted / nishi
select level, min('col_name') from my_table where level = '&n' connect by prior
('col_name') <'col_name') group by level;
Example:
Given a table called emp with the following columns:
-- id number
-- name varchar2(20)
-- sal number
--
-- For the second lowest salary:
-- select level, min(sal) from emp
-- where level=2
-- connect by prior sal < sal
-- group by lev
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is oracle host variable?
defination of bitmap index
How to view existing locks on the database?
Why is oracle database so popular?
What privilege is needed for a user to insert rows to tables in another schema?
How to write date and time literals in oracle?
Can you assign multiple query result rows to a variable?
What is system global area (sga) in oracle?
Why is oracle so popular?
how to handle exceptions in post production
What are the data types in oracle?
What is a nested table?
How to use "startup" command to start default instance?
What are the execution control statements in oracle?
How to check the server version in oracle?