Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Hierarchical query

Hierarchical query

From: RT <robbyt_at_unocal.com>
Date: 20 Mar 2005 22:02:55 -0800
Message-ID: <1111384975.161518.161250@f14g2000cwb.googlegroups.com>


I got a table with the following format:

insert into tab1 (1,'E1');
insert into tab1 (2,'E2');
insert into tab1 (3,'E3');
insert into tab1 (4,'Salary');
insert into tab1 (5,'E4');
insert into tab1 (6,'E5');
insert into tab1 (7,'E6');
insert into tab1 (8,'E7');
insert into tab1 (9,'Benefit');

and I want to ouput the following:

E1, Salary
E2, Salary
E3, Salary
E4, Benefit
E5, Benefit
E6, Benefit
E7, Benefit

Can anybody please help me with the query. Many thanks in advance. Received on Mon Mar 21 2005 - 00:02:55 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US