Subject | Re: [IBO] IB_WISQL problem (maybe) - the code |
---|---|
Author | Paul Little |
Post date | 2001-04-05T16:06:17Z |
Helen Borrie wrote:
The thing is, when I try this command interractively it works fine
(there seem to have been a number of postings recently with this type of
problem).
I guess it's time for the fine toothed comb
mutter mutter grumble
Paul
>Anyway, tried it and got the same result.
> > > update fifthpercentile set DEPRECIATION = (select sum(DEPRECIATION)
> > > from incomestatement
> > > where
> > > incomestatement.prd = :curpnum)*0.05 ) <-- missing right bracket
> > > where period = :curpnum;
> >
> >That's an odd number of right brackets, should there also be a
> >corresponding left bracket e.g.
> >
> >update fifthpercentile set DEPRECIATION = ((select sum(DEPRECIATION)
> >from incomestatement
> > where incomesattement.prd
> >= :curpnum)*0.05)
> >where period = :curpnum
>
> Correct. You must isolate the where clause of the subselect from the where clause of the update statement.
>
The thing is, when I try this command interractively it works fine
(there seem to have been a number of postings recently with this type of
problem).
I guess it's time for the fine toothed comb
mutter mutter grumble
Paul