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 meant by joins? List out the types of joins.
how do u setup a replication site?
Explain the use of online redo log files in oracle.
Who developed oracle & when?
how to convert .db (extention) database file into .dmp (extention ) for oracle database ?
1) Does oracle have any table which contain all the exceptions and it's code internally?
What do database buffers contain?
How to drop a stored procedure in oracle?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
Can sub procedure/function be called recursively?
How can we view last record added to a table?
What is a database schema in oracle?
How to update values in a table in oracle?
How are extents allocated to a segment?
How to define an oracle sub procedure?