31
Assuming that it's one column with multiple values, this approach works for MS SQL Server (I can't speak for other systems).
declare @result varchar(max)
set @result = ''
select @result = @result + RES
from (query goes here)