Subject | Re: [firebird-support] using extract on null values |
---|---|
Author | Milan Babuskov |
Post date | 2006-10-05T09:12:36Z |
Dmitry Yemanov wrote:
You can use F_YEAR UDF from rfunc UDF library:
http://rfunc.sourceforge.net
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
>>Is there a way, to get null or another default value for YOB in this case?FB 1.5:
> 1) CASEFB 2.0:
> WHEN A.BIRTHDATE IS NULL THEN NULL
> ELSE EXTRACT(YEAR FROM A.BIRTHDATE)
> END
> 2) FB 2.0 returns NULL in your caseFB 1.0:
You can use F_YEAR UDF from rfunc UDF library:
http://rfunc.sourceforge.net
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org