I have a table as below:
FileHash FilePath
1 A.txt
3 e.txt
3 f.txt
3 g.txt
3 h.txt
2 B.txt
2 c.txt
In T-SQL, How to concatenate the first 3 FilePath of each FileHash as follows:
FileHash FilePath
1 A.txt
2 B.txt, C.txt
3 e.txt, f.txt, g.txt