I joined a table to itself to find duplicate rows
select a.data, a.rowNumber, b.rowNumber
from DuplicateRows as a
join DuplicateRows as b
on
a.data = b.data and a.Id != b.Id
group by a.data, a.rowNumber, b.rowNumber
This query gives the results like
"content" | 1 | 2
"content" | 1 | 6
"content" | 2 | 1
"content" | 2 | 6
...and so on
Howcome I rewrite it to have results formed like
"content" | 1 | 2, 6
EDIT
I think the question should be a little bit corrected. You see I don't want to get the inversed result, I mean I just want to get one entry
`1 -> 2, 6`
not
`1 -> 2, 6 and `2 -> 1, 6`
Thanks!