I have about 10,000 ids where I need to merge notes column separated by ' | ' or ' , '
my data looks like this:
ID notes
ID Notes Date
1 notes1 3/1/20
1 notes2 3/2/20
1 notes3 3/3/20
2 notes1
2 notes2
2 notes3
3 notes1
3 notes2
Desired output
ID Column NOTES
1 3/1/20 notes1, 3/2/20 notes2, 3/3/20 notes3
2 notes1,notes2,notes3
3 notes1,notes2
how to achieve this in sql server (SSMS)