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
State some uses of redo log files?
How to grant create session privilege to a user in oracle?
Name the three major set of files on disk that compose a database in Oracle?
What is a database table in oracle?
How many data types are supported?
How to use null as conditions in oracle?
What is the difference between translate and replace?
Explain the use of control file?
How to omit columns with default values in insert statement in oracle?
How to retrieve values from data fields in record variables?
What is coalesce function?
How to speed up webrick?
How many types of tables supported by oracle?
How to check database size in Oracle?
What is procedure overloading in oracle?