This SQL seems complex, is there an easier way to get FirstName, LastName when one or both of the fields can be NULL?
SELECT COALESCE(LastName,\'\')+
How about
SELECT COALESCE(LastName + ', ' + FirstName,
LastName, FirstName) Name
FROM Person
if firstname or lastname is null the entire first expression (with the ,), becomes null, forcing the coalesce to examine, second, the lastname alone, and then if lastname is null, finally, the firstname alone.