我有一张这样的桌子:
Name Address Matches
Tim Jones 1 London Road, London, W10EU Peter Jones
Tim Jones 1 London Road, London, W10EU Smith Jones
Tim Jones 1 London Road, London, W10EU Tim Jones
Tim Jones 1 London Road, London, W10EU S Singh
Jack Sons 10 West Street, London, W900U John Graham
Jack Sons 10 West Street, London, W900U Jack Sons
我想要这样的结果:
Name Address Matches
Tim Jones 1 London Road, London, W10EU Peter Jones,Smith johns,Tim Johns, S Singh
Jack Sons 10 West Street, London, W900U John Graham, Jack Sons
它应该按名称、地址连接所有“匹配”列和组。SQLServer08