Quantcast
Channel: Rss Feed - SSMSBoost Add-in discussion board - Forum
Viewing all articles
Browse latest Browse all 823

Formatting Commas

$
0
0
If there a way to get the commas to format so they are next to columns in queries. This is how it is now:
SELECT DISTINCT 'TSC - Project'
, 'Configuration Lists'
, CASE p.acct_grp_cd WHEN 'OTR' THEN 'DIR'+'-'+LEFT(a.acct_id,2)
WHEN 'MRK' THEN 'PRM'+'-'+LEFT(a.acct_id,2)
ELSE p.acct_grp_cd+'-'+LEFT(a.acct_id,2) END
, ''
, ''

and I have never seen commas formatted that way. This would be preferred:
SELECT DISTINCT 'TSC - Project'
,'Configuration Lists'
,CASE p.acct_grp_cd WHEN 'OTR' THEN 'DIR'+'-'+LEFT(a.acct_id,2)
WHEN 'MRK' THEN 'PRM'+'-'+LEFT(a.acct_id,2)
ELSE p.acct_grp_cd+'-'+LEFT(a.acct_id,2) END
,''
,''
Go to last post

Viewing all articles
Browse latest Browse all 823

Trending Articles