Link to home
Start Free TrialLog in
Avatar of Richiep86
Richiep86

asked on

coalesce (per.KNOWN_AS,per.FIRST_FORNAME) FNAME,

Hi guys,

coalesce (per.KNOWN_AS,per.FIRST_FORNAME) FNAME,

Open in new window


I was expecting the above to:

- Use the known_as name if there is a known as name
- Use the FIRST_FORNAME if there is no KNOWN_AS name

However.

The known_as name is populated if its there, although the FORENAME isnt being populated if there is no KNOWNAS name, despite FORENAME being avaiable.

Why is this?
Avatar of johnsone
johnsone
Flag of United States of America image

Can you provide some sample data?

COALESCE works with NULLs, if the value of KNOWN_AS is not NULL (if it contains spaces), then it will be used.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Richiep86
Richiep86

ASKER

It had white spaces in the surname.

Thanks alot!