I'm trying to figure out the best way to get the results I want:
mytable
tabid distid colid cnt
1 Dist 1 0 189
1 Dist 1 1 433
1 Dist 1 2 8
1 Dist 2 0 55
1 Dist 2 1 2
1 Dist 2 2 444
I need it to display like this
distid col1 col2 col3
Dist 1 189 433 8
Dist 2 55 2 444
The problem comes in that I need to be able to re-use this for different clients who will have different numbers of columns (any where up to 255, colid can be 0-254). I only want to display valid columns for each client dataset.
I'm kind of lost on how to accomplish this, so any help would be greatly appreciated.
mytable
tabid distid colid cnt
1 Dist 1 0 189
1 Dist 1 1 433
1 Dist 1 2 8
1 Dist 2 0 55
1 Dist 2 1 2
1 Dist 2 2 444
I need it to display like this
distid col1 col2 col3
Dist 1 189 433 8
Dist 2 55 2 444
The problem comes in that I need to be able to re-use this for different clients who will have different numbers of columns (any where up to 255, colid can be 0-254). I only want to display valid columns for each client dataset.
I'm kind of lost on how to accomplish this, so any help would be greatly appreciated.