I have table called Rule.
RuleId Name
1 A1
2 A2
3 A3
.
.
.
Now I want all the names as single result.
may be like @allnames = A1,A2,A3
Can somebody advise how to write query for this without using loops?
Thanks in advance...