Hi all,
I have a table that is basically ID, ItemID, Alias
There can be multiple rows for the same ItemID but the Alias will be different
EG,
ID ItemID Alias
1 1 Moose1
2 1 Moose2
3 1 Moose3
4 1 Moose4
5 2 Moose5
6 2 Moose6
What i would like as an output would be:
ItemID, All aliases
1,Moose1,Moose2,Moose3,Moose4
2,Moose5,Moose6,NULL,NULL
Anyone got any ideas without having to resort to an ugly cursor?
Cheers
Clegg
I have a table that is basically ID, ItemID, Alias
There can be multiple rows for the same ItemID but the Alias will be different
EG,
ID ItemID Alias
1 1 Moose1
2 1 Moose2
3 1 Moose3
4 1 Moose4
5 2 Moose5
6 2 Moose6
What i would like as an output would be:
ItemID, All aliases
1,Moose1,Moose2,Moose3,Moose4
2,Moose5,Moose6,NULL,NULL
Anyone got any ideas without having to resort to an ugly cursor?
Cheers
Clegg