All:
In SQL Server 2000, how can I query the data below to get the parent and all the children on one row with the children in order from left to right based on the values in the Pctage column?
Table:
Parent Child Pctage
--------------- -------------- --------
50985 35794 42.431
50985 35923 37.268
50985 35999 20.301
50986 39573 40.372
50986 35493 9.254
50986 91299 50.374
Desired result:
Parent ChildA ChildB ChildC
--------------- ------------- ------------- -------------
50985 35794 53923 35999
50986 91299 39573 35493
TIA,
Sven
In SQL Server 2000, how can I query the data below to get the parent and all the children on one row with the children in order from left to right based on the values in the Pctage column?
Table:
Parent Child Pctage
--------------- -------------- --------
50985 35794 42.431
50985 35923 37.268
50985 35999 20.301
50986 39573 40.372
50986 35493 9.254
50986 91299 50.374
Desired result:
Parent ChildA ChildB ChildC
--------------- ------------- ------------- -------------
50985 35794 53923 35999
50986 91299 39573 35493
TIA,
Sven