Imagine you have a User table with FirstName, MiddleName, LastName.
For the sake of this sample only FirstName is mandatory.
What’s the fastest way to concatenate these 3 fields and separate them with a “,” when their value is NOT null, so:
If only FirstName is NOT null, we should get “John” as result.
If only FirstName and LastName are not null, we should have “John,Wayne” as result.
If FirstName, MiddleName and LastName are not null, we should have “John,M,Wayne” as result.
Thanks in advanced.
Maybe something like this: