Subject | Re: [firebird-support] Subquery and returning "0" |
---|---|
Author | Mark Rotteveel |
Post date | 2014-07-12T16:38:43Z |
On 12-7-2014 18:30, Svein Erling Tysvær
svein.erling.tysvaer@... [firebird-support] wrote:
Mark
--
Mark Rotteveel
svein.erling.tysvaer@... [firebird-support] wrote:
> Your statement is equivalent to "CASE WHEN umowy.numer_umowy IS NULL THEN 0 ELSE NULL END", so I think your problem simply is that NULL is returned if numer_umowy has a value. You may get the result you want by changing to:Good find, I had totally overlooked that.
>
> CASE WHEN umowy.numer_umowy IS NULL THEN 0 ELSE umowy.numer_umowy END
Mark
--
Mark Rotteveel