Subject | Re: using extract on null values |
---|---|
Author | Adam |
Post date | 2006-10-05T07:05:08Z |
--- In firebird-support@yahoogroups.com, "Christian Kaufmann"
<ch.kaufmann@...> wrote:
What version of FB are you using?
I get null on 1.5.3 when I try to extract from a field with a null value.
From memory, TFB says otherwise.
Adam
<ch.kaufmann@...> wrote:
>case?
> Hi,
>
> I have the following query:
>
> select distinct SR.COURSE, R.GENDER as RELAYGENDER, A.GENDER,
> extract(year from A.BIRTHDATE) as YOB
> from SWIMRESULT SR
> left join ATHLETE A on SR.ATHLETEID = A.ATHLETEID
> left join RELAYINFO R on SR.ATHLETEID = R.RELAYINFOID
>
> For records in SWIMRESULT where I have no record in ATHLETE, I get an
> error because "extract(year from A.BIRTHDATE)" fails.
>
> Is there a way, to get null or another default value for YOB in this
What version of FB are you using?
I get null on 1.5.3 when I try to extract from a field with a null value.
From memory, TFB says otherwise.
Adam