• Another way is

    SELECT

    CASE WHEN col2 IS NULL THEN col1

    ELSE col1+ ', ' +col2 END

    FROM ....