Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Rafal Furdzik wrote:
>
> If a.first is null,this select will return nulll
>
> Select a.last || ', ' || a.first
> From a
>
> How to return a.last only in case if a.first is null. Please help.
select a.last || ','
from a
where a.first is null
union
select a.last || ',' || a.last
from a
where a.first is not null;
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.