On 12-7-2014 18:30, Svein Erling Tysvær 
[email protected] [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:
>
> CASE WHEN umowy.numer_umowy IS NULL THEN 0 ELSE umowy.numer_umowy END

Good find, I had totally overlooked that.

Mark
-- 
Mark Rotteveel


------------------------------------

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Reply via email to