Dear Experts,
I want to append vertical row result into horizontal
CREATE TABLE #mable(mid INT, token nvarchar(16))
INSERT INTO #mable VALUES (0, 'foo')
INSERT INTO #mable VALUES(0, 'goo')
INSERT INTO #mable VALUES(1, 'hoo')
INSERT INTO #mable VALUES(1, 'moo')
Actual output
---------------------------
| MID | TOKEN |
| 0 | foo |
| 0 | goo |
| 1 | hoo |
| 1 | moo |
Desire output
-------------------------
| MID | TOKEN | MID | TOKEN |
| 0 | foo | 0 | goo |
| 1 | hoo | 1 | moo |
Please help .Awaiting for response.