I know it is prehistoric thread - but you don't need to use variables or coalesce. You can do it all inline. See below.
declare @table table (
result_number int
)
insert into @table
select 12345 union
select 23456 union
select 34567 union
select 45678 union
select 56789 union
select 67890
select stuff(convert(varchar(max),(
select ','+ cast(result_number as nvarchar(255))
from @table b
FOR XML PATH('')
)),1,1,'')