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 -> Re: How to write a view to de-normalize the table rows?

Re: How to write a view to de-normalize the table rows?

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 08 Sep 2005 09:00:18 -0700
Message-ID: <1126195171.848289@yasure>


mullin wrote:
> i have the following table structure with sample data
>
> TranxID RowID Table Description NewValue
> OldValue
> 1000 1 Table1 IDX 1
> 1000 1 Table1 MAPPING A
> B
> 1000 2 Table1 IDX 2
> 1000 2 Table1 MAPPING X
> Y
> 1000 1 Table2 IDX 1
> 1000 1 Table2 MAPPING C
> D
> 2000 1 Table1 IDX 1
> 2000 1 Table1 MAPPING B
> U
>
> i want to write a view to group them into the following structure
>
> TranxID RowID Tb1_IDX_New Tb1_IDX_Old Tb1_MAPPING_New Tb1_MAPPING_Old
> Tb2_IDX_New Tb2_IDX_Old Tb2_MAPPING_New Tb2_MAPPING_Old
> 1000 1 1 A B
> 1 C D
> 1000 2 2 X Y
> 2000 1 1 B U

Then by all means do so.

I'm sorry but is there a question in here somewhere? Or do you expect someone to do your work for you and also have to figure out the business rules too.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Sep 08 2005 - 11:00:18 CDT

Original text of this message

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