Possible Duplicate:
Pivot Table and Concatenate Columns - SQL Problem
I've got a one to many relationship that I'd like to compress into one row for a data export:
Header Table
IDh ColA
1 Eggs
Detail Table
IDd FK ColB ColC
1 1 Blah Foo
2 1 Qwer Too
...
I'd like:
ColA ColB1 ColC1 ColB2 ColC2 ColBx ColCx
Eggs Blah Foo Qwer Too ... ...
What's the best way to do this? SQL Server 2005