Subject | Re: [firebird-support] Is possible to use COALESCE with a SELECT? |
---|---|
Author | Paul Vinkenoog |
Post date | 2011-04-09T22:19:35Z |
Hi Walter,
SELECT COALESCE((SELECT ... FROM ...), PRD_COUNT) FROM ...
HTH,
Paul Vinkenoog
> Is possible to use COALESCE in the following way ?Yes, but you need a pair of parentheses around the inner SELECT:
>
> SELECT COALESCE(SELECT ...... , PRD_COUNT)
SELECT COALESCE((SELECT ... FROM ...), PRD_COUNT) FROM ...
HTH,
Paul Vinkenoog