Has anyone tried using COALESCE to concatenate data of many rows in a single row? I know this is possible in SQL Server, any ideas if I can do the same in SQL RPGLE or from STRSQL command line?
Ta
Ta
[COLOR=#00008b]DECLARE[/COLOR] @Names VARCHAR([COLOR=#800000]8000[/COLOR]) [COLOR=#00008b]SELECT[/COLOR] @Names = [COLOR=#00008b]COALESCE[/COLOR](@Names + [COLOR=#800000]', '[/COLOR], [COLOR=#800000]''[/COLOR]) + Name [COLOR=#00008b]FROM[/COLOR] People
Comment