I have been searching for a way to get multiple child records to one row with multiple columns containing the GUID of each record...
Here is what the table looks like:
StudentParentID StudentID ParentID
1 1 1
2 1 2
3 1 3
4 2 4
5 2 5
What I'd like is a result set like:
StudentID ParentID1 ParentID2 ParentID3
1 1 2 3
2 4 5 (null)
I am using SQL Server 2008. Thank you for your help!