Subject | RE: [firebird-support] Re: summation of two select |
---|---|
Author | Leyne, Sean |
Post date | 2011-04-08T22:05:51Z |
Ed,
Sean
> Thank you for your respohse. I have not seen Coalesce before.It will become your best friend very quickly
> Firebird 1.5 balks at the "Select" in the 3rd line "Token unknown, line 3, charMy typo... the SELECT line needs to be in parentheses ... (SELECT(PAI.Balance) FROM PersonActInfo PAI where PAI.Person_ID)
> 5."
>
> > SELECT
> > COALESCE( PI.Balance,0) + COALESCE(
> > SELECT(PAI.Balance) FROM PersonActInfo PAI where PAI.Person_ID
> ^^^^^^
Sean