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: Tough One: How do u denormailize a table via a view, if column is text not numb

Re: Tough One: How do u denormailize a table via a view, if column is text not numb

From: Paul Quenneville <paulq_at_home.com>
Date: Tue, 30 Oct 2001 18:26:23 GMT
Message-ID: <jhCD7.117316$5h5.47365719@news3.rdc2.on.home.com>


write a function to return the full concatenatedstring from table A

"johnthan" <jthn342_at_hotmail.com> wrote in message news:3bdee6fe$0$14833$45beb828_at_newscene.com...
>
> We have a table A as such:
>
> REQ LINE_NUM DESCP
>
> 9 10000 PED IS OFF
> 9 20000 SO PROCEED
> 9 30000 WITH X
>
>
> that needs to be joined to a table B as such
>
>
> REQ location date
>
> 9 LA 01/01/01
>
> to produce
>
>
> REQ location date DESCP
>
> 9 LA 01/01/01 PED IS OFF SO PROCEED
WITH X
>
>
> (the app that creates the table A only allows x number of characters per
> column if DESCP is longer than that it creates additional rows until whole
> DESCP is stored)
>
> I know how to denormalize a table if the column that is denormalized is a
> number e.g.
> SELECT a,b,
> sum(decode(y, z, 99, 0)),
> sum(decode(y, z, 88, 0))
> FROM TB1
> GROUP BY a,b
>
> but what if its a varchar?
>
> We need this done dynamically via a view
>
> Any ideas?
>
Received on Tue Oct 30 2001 - 12:26:23 CST

Original text of this message

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