I have data like the following format:
caseID Code
1 AAA
1 BBB
1 CCC
1 DDD
2 CCC
3 AAA
3 BBB
3 CCC
3 DDD
3 EEE
I want to pivot it so that it displays as such:
CaseID Code1 Code2 Code3 Code4 Code5
1 AAA BBB CCC DDD
2 CCC
3 AAA BBB CCC DDD EEE
How can I do this? I was trying to use the Pivot Transform in ssis but it seems to need an aggregate.