I'm currently building a simple view and need to combine both the First Name
and Last Name
columns to create a new Customer
column. If a First Name
and Last Name
are not provided I'd like to change this new combined value to 'Name Not Provided'.
Currently I use a simple select statement:
LastName + ', ' + FirstName AS Customer
which appears to work fine for combing the data but if the data doesn't exist, it will just return ', '
. How do I go about changing this so it returns 'Name Not Provided'?