Subject | RE: [firebird-support] coerce null to 0 |
---|---|
Author | Nick |
Post date | 2006-06-26T14:06:01Z |
select sum(coalesce(0,amt)) ...
--
Nick
-----We Solve your Computer Problems---
UNIX, C, Panther, Ingres, Interbase, Firebird - Available Shortly
--
Nick
-----We Solve your Computer Problems---
UNIX, C, Panther, Ingres, Interbase, Firebird - Available Shortly
> -----Original Message-----
> From: firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com] On Behalf Of bill_lam
> Sent: 26 June 2006 15:03
> To: firebird-support@yahoogroups.com
> Subject: [firebird-support] coerce null to 0
>
>
> is there any method to coerce possible null from aggregate
> function to zero, eg select sum(amt) from balc where 1=0 it
> returns null, but I want 0 instead.
>
> regards,
> bill
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Yahoo! Groups gets a make over. See the new email design.
> http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/67folB/TM
> --------------------------------------------------------------
> ------~->
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>