Subject | Re: [firebird-support] NULL in exprssions |
---|---|
Author | Lester Caine |
Post date | 2005-02-20T09:54:49Z |
Alberto Pesce wrote:
should work - will give 0 if either A or B is NULL
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> How can I get in a Query thisCOALESCE( A.field * B.field, 0 )
>
> if B.field = NULL
> A.field * B.field = 0
> else
> A.field * B.field = X
>
> Using a join I obtain that if B.field = NULL, A.field * B.field = NULL
should work - will give 0 if either A or B is NULL
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services