GKIL67
Technical User
- Dec 1, 2009
- 44
I have the table tblpatskips:
Where DrawNo is an ID counter, BALL values are 1-45 and
SKIPS can be any number. I need to transform it to:
There are always five(5) BALLS and five(5) SKIPS per
DrawNo and it is rather important to retain the specific
headings.
Could anyone provide some useful advice?
Many Thanks!
Code:
DrawNo BALL SKIPS
1 5 3
1 12 16
1 18 2
1 20 11
1 32 7
2 2 3
2 6 1
2 23 1
2 24 9
2 42 2
Where DrawNo is an ID counter, BALL values are 1-45 and
SKIPS can be any number. I need to transform it to:
Code:
DrawNo BALL1 BALL2 BALL3 BALL4 BALL5 SKIPS1 SKIPS2 SKIPS3 SKIPS4 SKIPS5
1 5 12 18 20 32 3 16 2 11 7
2 2 6 23 24 42 3 1 1 9 2
There are always five(5) BALLS and five(5) SKIPS per
DrawNo and it is rather important to retain the specific
headings.
Could anyone provide some useful advice?
Many Thanks!