I was wondering if I can turn this
id part_id, type, value
1 1 'type1' 'aaaa'
2 1 'type2' 'bbbb'
3 1 'type3' 'cccc'
4 2 'type1' 'dddd'
5 2 'type2' 'eeee'
6 2 'type3' 'ffff'
into this
part_id, type1value, type2value, type3value
1 aaaa bbbb cccc
2 dddd eeee ffff
And use nothing but TSQL
I think "pivot" command can do the job but I couldn't possibly seems to make it work...
I need help!