Subject | Re: [firebird-support] Is possible to use COALESCE with a SELECT? |
---|---|
Author | W O |
Post date | 2011-04-10T00:27:38Z |
Ok, thank you very much Paul.
Walter.
Walter.
On Sat, Apr 9, 2011 at 6:19 PM, Paul Vinkenoog <paul@...> wrote:
>
>
> Hi Walter,
>
> > Is possible to use COALESCE in the following way ?
> >
> > SELECT COALESCE(SELECT ...... , PRD_COUNT)
>
> Yes, but you need a pair of parentheses around the inner SELECT:
>
> SELECT COALESCE((SELECT ... FROM ...), PRD_COUNT) FROM ...
>
> HTH,
> Paul Vinkenoog
>
>
[Non-text portions of this message have been removed]