• As mentioned above, wouldn't be easier to use COALESCE? You dont't nedd to worry about trailing comma.