i have address columns that i would like to concatenate even if only one field is not null.
for example
street,city,state,zip
null,null,AL,36609
Currently, my sql statement is like this:
select street + ',' + city + ',' + state + ',' + 'zip as address
so the sample record above gives me null for address. is there an easy way to show whatever is not nulll?
so the example record above would return:
AL, 36609
Try this query: