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

Home -> Community -> Usenet -> c.d.o.misc -> Combining Rows in a SQL Query

Combining Rows in a SQL Query

From: Ian Holsman <IanHolsman_at_Iname.com>
Date: 1997/05/21
Message-ID: <5lu500$3fm@minotaur.labyrinth.net.au>#1/1

Hi
I would like to find out if it is possible via a SQL query to do something like this:
given a invoice -- invoice item table structure have a SQL query show me something like

Invoice Products
---------- ---------------

1012        a,b,c,d
1013        a,e,f

this input table would be some thing like

Invoice Produc
t
---------- ------------

1012      a
1012      b
1012      c
1012      d
1013      a
1013      e
1013      f


does anybody know who to do this without using a cursor in PL/SQL ???

Thank you

Ian Holsman
IanHolsman_at_Iname.com Received on Wed May 21 1997 - 00:00:00 CDT

Original text of this message

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