Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id gBA2Di513557
 for <oracle-l@orafaq.net>; Mon, 9 Dec 2002 20:13:44 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id gBA2Di313552
 for <oracle-l@orafaq.net>; Mon, 9 Dec 2002 20:13:44 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id OAA21484;
 Mon, 9 Dec 2002 14:56:22 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 00515AB3; Mon, 09 Dec 2002 14:04:29 -0800
Message-ID: <F001.00515AB3.20021209140429@fatcity.com>
Date: Mon, 09 Dec 2002 14:04:29 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Koivu, Lisa" <Lisa.Koivu@efairfield.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Koivu, Lisa" <Lisa.Koivu@efairfield.com>
Subject: RE: Parsing Column val
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C29FCE.2A58B211"
------_=_NextPart_001_01C29FCE.2A58B211
Content-Type: text/plain

The only way I can think of doing this in sql would involve a bunch of
INSTR() and SUBSTR() functions and hardcoded repetitions, and would get ugly
fast.  Go with pl/sql, it would be a snap to assemble the result set there.

Lisa

> -----Original Message-----
> From:	OraCop [SMTP:oracop@yahoo.com]
> Sent:	Monday, December 09, 2002 4:00 PM
> To:	Multiple recipients of list ORACLE-L
> Subject:	RE: Parsing Column val
> 
> Yes there is primary key on the table.
> 
> --- "Koivu, Lisa" <Lisa.Koivu@efairfield.com> wrote:
> > Looks to me like you have to do this in pl/sql
> > unless you can say something
> > about the uniqueness of col1 and col2.  Is there a
> > primary key on the table?
> > 
> > Lisa Koivu
> > Oracle Diaper Administrator
> > Fairfield Resorts, Inc.
> > 5259 Coconut Creek Parkway
> > Ft. Lauderdale, FL, USA  33063
> > 
> > 
> > 
> > > -----Original Message-----
> > > From:	OraCop [SMTP:oracop@yahoo.com]
> > > Sent:	Monday, December 09, 2002 1:24 PM
> > > To:	Multiple recipients of list ORACLE-L
> > > Subject:	Parsing Column val
> > > 
> > > Hello,
> > >  One of the column in EACH row has space saperated
> > > values.
> > > 
> > >  Example
> > > 
> > >   Col1       Col2      Col3
> > >   ==============================
> > >   Hello       World    he she we 
> > >   oracle      rules     any doubt
> > > 
> > > Out put should look like
> > > 
> > > 
> > >   Col1       Col2      Col3
> > >   ==============================
> > >   Hello       World    he 
> > >   Hello       World    she
> > >   Hello       World    we
> > >   Oracle     rules     any
> > >   Oracle     rules     doubt
> > > 
> > > 
> > > 
> > > Please Help.
> > > 
> > > URGENT!
> > > 
> > > Thanks. 
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > > -- 
> > > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > > -- 
> > > Author: OraCop
> > >   INET: oracop@yahoo.com
> > > 
> > > Fat City Network Services    -- 858-538-5051
> > http://www.fatcity.com
> > > San Diego, California        -- Mailing list and
> > web hosting services
> > >
> >
> ---------------------------------------------------------------------
> > > To REMOVE yourself from this mailing list, send an
> > E-Mail message
> > > to: ListGuru@fatcity.com (note EXACT spelling of
> > 'ListGuru') and in
> > > the message BODY, include a line containing: UNSUB
> > ORACLE-L
> > > (or the name of mailing list you want to be
> > removed from).  You may
> > > also send the HELP command for other information
> > (like subscribing).
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: OraCop
>   INET: oracop@yahoo.com
> 
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01C29FCE.2A58B211
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: Parsing Column val</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">The only way I can =
think of doing this in sql would involve a bunch of INSTR() and =
SUBSTR() functions and hardcoded repetitions, and would get ugly =
fast.&nbsp; Go with pl/sql, it would be a snap to assemble the result =
set there.</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Lisa</FONT>
</P>
<UL>
<P><FONT SIZE=3D1 FACE=3D"Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">From:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">OraCop [SMTP:oracop@yahoo.com]</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">Sent:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">Monday, December 09, 2002 4:00 PM</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Arial">Multiple recipients of list ORACLE-L</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Arial">RE: Parsing Column val</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Yes there is primary key on the =
table.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">--- &quot;Koivu, Lisa&quot; =
&lt;Lisa.Koivu@efairfield.com&gt; wrote:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; Looks to me like you have to do =
this in pl/sql</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; unless you can say =
something</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; about the uniqueness of col1 and =
col2.&nbsp; Is there a</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; primary key on the table?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; Lisa Koivu</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; Oracle Diaper =
Administrator</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; Fairfield Resorts, Inc.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; 5259 Coconut Creek =
Parkway</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; Ft. Lauderdale, FL, USA&nbsp; =
33063</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; -----Original =
Message-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; =
From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OraCop =
[SMTP:oracop@yahoo.com]</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; =
Sent:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Monday, December 09, 2002 =
1:24 PM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; To: Multiple recipients of =
list ORACLE-L</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Subject:&nbsp;&nbsp;&nbsp; =
Parsing Column val</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Hello,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp; One of the column in =
EACH row has space saperated</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; values.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp; Example</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Col1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Col2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Col3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Hello&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World&nbsp;&nbsp;&nbsp; he =
she we </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
oracle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rules&nbsp;&nbsp;&nbsp;&nbsp; any =
doubt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Out put should look =
like</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Col1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Col2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Col3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Hello&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World&nbsp;&nbsp;&nbsp; he =
</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Hello&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World&nbsp;&nbsp;&nbsp; =
she</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Hello&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; World&nbsp;&nbsp;&nbsp; =
we</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Oracle&nbsp;&nbsp;&nbsp;&nbsp; rules&nbsp;&nbsp;&nbsp;&nbsp; any</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; =
Oracle&nbsp;&nbsp;&nbsp;&nbsp; rules&nbsp;&nbsp;&nbsp;&nbsp; =
doubt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Please Help.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; URGENT!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Thanks. </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; =
__________________________________________________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Yahoo! Mail Plus - =
Powerful. Affordable. Sign up</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; now.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; <A =
HREF=3D"http://mailplus.yahoo.com" =
TARGET=3D"_blank">http://mailplus.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; -- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Please see the official =
ORACLE-L FAQ:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; -- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Author: OraCop</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;&nbsp;&nbsp; INET: =
oracop@yahoo.com</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; Fat City Network =
Services&nbsp;&nbsp;&nbsp; -- 858-538-5051</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; <A =
HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; web hosting services</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">---------------------------------------------------------=
------------</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; To REMOVE yourself from =
this mailing list, send an</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; E-Mail message</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; to: ListGuru@fatcity.com =
(note EXACT spelling of</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; the message BODY, include a =
line containing: UNSUB</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; ORACLE-L</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; (or the name of mailing =
list you want to be</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; removed from).&nbsp; You =
may</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; &gt; also send the HELP command =
for other information</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; (like subscribing).</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT>
</P>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">__________________________________________________</FONT>=

<BR><FONT SIZE=3D2 FACE=3D"Arial">Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Yahoo! Mail Plus - Powerful. =
Affordable. Sign up now.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"><A HREF=3D"http://mailplus.yahoo.com" =
TARGET=3D"_blank">http://mailplus.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">-- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Please see the official ORACLE-L FAQ: =
<A HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">-- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Author: OraCop</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; INET: oracop@yahoo.com</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Fat City Network =
Services&nbsp;&nbsp;&nbsp; -- 858-538-5051 <A =
HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and web hosting services</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">---------------------------------------------------------=
------------</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">To REMOVE yourself from this mailing =
list, send an E-Mail message</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">to: ListGuru@fatcity.com (note EXACT =
spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the message BODY, include a line =
containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(or the name of mailing list you want =
to be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">also send the HELP command for other =
information (like subscribing).</FONT>
</P>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01C29FCE.2A58B211--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Koivu, Lisa
  INET: Lisa.Koivu@efairfield.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

