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 -> reverse pivoting

reverse pivoting

From: Kenny Yu <kyu_at_biodiscovery.com>
Date: Mon, 11 Mar 2002 15:39:54 -0800
Message-ID: <u8qg1qdugihbd2@corp.supernews.com>


Is there systematic approaches in data warehousing to do the following

converting table Pivot (customer, product, amount) -- many rows per customer

into table RPivot (customer, prod1Amt, prod2Amt, ... prodnAmt) -- one row per customer

the columns in the RPivot table are the unique values in the Pivot.product column.

I am interested in a pure SQL way.

Thanks. Received on Mon Mar 11 2002 - 17:39:54 CST

Original text of this message

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