I have a table with three columns. I want to write a query which joing all the values present in the 3rd row and merge it in a single value seperated by commas.
ex -
Table A
+------+------+------+ | Col1 | Col2 | Col3 | +------+------+------+ | 1 | A | AB | | 2 | B | BC | | 3 | C | CD | | 4 | D | DE | | 5 | E | EF | | 6 | F | FG | +------+------+------+
Result I want :
AB,BC,CD,DE,EF,FG
PS: I am using MS SQL server 2008