Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
This...select typedesc from desctypes where typegroup = 'HA'Returns three records...Level OneLevel TwoLevel ThreeI want to return one record that looks like this...Level One,Level Two,Level ThreeI know this is common and basic but I google in vain.
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts
Posted - 2010-01-12 : 15:35:32
Why do you need to show it this way, If you have to show it in a front end, do your formatting there.Try this though..
select stuff((select ',' + typedesc from desctypes where typegroup = 'HA' for xml path('')),1,1,'')