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: TABLE QUESTION

Re: TABLE QUESTION

From: Ken Denny <ken_at_kendenny.com>
Date: Thu, 27 Sep 2007 11:58:11 -0700
Message-ID: <1190919491.631299.203090@y42g2000hsy.googlegroups.com>


On Sep 27, 2:40 pm, alex <sql_..._at_yahoo.com> wrote:
> Table question
>
> I have a table with two columns, e.g.:
>
> FORM COUNT SEP
> Xg 2
> Gu 8
> Iu 9
> Vi 1
> Wt 4
>
> I want to run a new query each month and append a new column to the
> table, e.g.:
>
> FORM COUNT SEP COUNT OCT
> Xg 2 6
> Gu 8 9
> Iu 9 2
> Vi 1 6
> Wt 4 7
>
> I know how to alter the table and insert a new column and even data.
> Problem is, however; I don't want to add rows. I want to add the
> counts each month based on the FORM (i.e., where form = form). When I
> run my code, I get the following:
>
> FORM COUNT SEP COUNT OCT
> Xg 2
> Gu 8
> Iu 9
> Vi 1
> Wt 4
> 6
> 9 2
> 6
> 7
>
> Any thoughts?

Looks like your code is doing "insert" rather than "update". Received on Thu Sep 27 2007 - 13:58:11 CDT

Original text of this message

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