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 -> Re: Is there an SQL to create a view that will normalize a denoramlized table?

Re: Is there an SQL to create a view that will normalize a denoramlized table?

From: Steven Franklin <steven.franklin_at_wcom.com>
Date: Thu, 29 Jul 1999 15:17:00 GMT
Message-ID: <37A0706C.BEC5BB15@wcom.com>


I've used a UNION clause to resolve this type of problem. Of course the UNION clause if very slow, and I've only used it this way as a one time conversion for migrating data from a denormalized form to a normalized form.
i.e.

select id,data,hour1 hour
from tbl
union
select id,data,hour2
from tbl
...

tony wrote:

> we have a table that is normalized 24 hourly reading in one row
>
> id date hour1 hour2 .. hour24
>
> we need to create a view that is normalized.
>
> id date hour1
> id date hour2
>
> any help please
Received on Thu Jul 29 1999 - 10:17:00 CDT

Original text of this message

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