Home Forums Article Discussions Article Discussions by Author Discuss content posted by Carlo Romagnano "SELECT @local_variable" RE: "SELECT @local_variable"
VM-723206
SSCrazy
Points: 2964
More actions
June 29, 2010 at 12:49 am
#1186180
I'm not sure why DISTINCT was required here..
SELECT @t = @t + @comma + a.a ,@comma = ','
FROM #a a ORDER BY 1
The above select returns a C as well. Am I missing something here?