usa GROUP_CONCAT
SELECT a.data,
a.rowNumber,
GROUP_CONCAT(b.rowNumber)
FROM DuplicateRows AS a
INNER JOIN DuplicateRows AS b
ON a.data = b.dataAND a.Id != b.Id
GROUP BY a.data, a.rowNumber
usa GROUP_CONCAT
SELECT a.data,
a.rowNumber,
GROUP_CONCAT(b.rowNumber)
FROM DuplicateRows AS a
INNER JOIN DuplicateRows AS b
ON a.data = b.dataAND a.Id != b.Id
GROUP BY a.data, a.rowNumber
Come dividere la finestra delle query in SQL Server Management Studio (SSMS) - Tutorial SQL Server/TSQL Parte 13
Sapere come recuperare la tabella eliminata in SQL Server 2012 senza backup
Novità di PgBouncer 1.6
Come visualizzare query e risultati in una scheda separata in SQL Server Management Studio (SSMS) - Tutorial SQL Server/TSQL Parte 15