greetings
I need to process data in Pivot Tables that look like this...
I need a query that will organize the data like this... (empty rows are just for clarity)
Every Pivot Table I'm given has different fields after the TypeID field, of course, and this is making it hard to produce the desired tblB.
Thanks for any clues.
I need to process data in Pivot Tables that look like this...
Code:
[b]
(pk)
TypeID 2667 3771 4998 8772 9911 [/b]
[b]tblA[/b] 1 22 13
2 5 8 27
3 13
4 10 7 12
5 etc...
I need a query that will organize the data like this... (empty rows are just for clarity)
Code:
[b]
( pk )
TypeID Detail TblValue PivotValue[/b]
[b]tblB[/b] 1 1 22 3771
1 2 13 4998
2 1 5 2667
2 2 8 4998
2 3 27 8772
3 1 13 3771
4 1 10 2667
4 2 7 8772
4 3 12 9911
5 etc...
Every Pivot Table I'm given has different fields after the TypeID field, of course, and this is making it hard to produce the desired tblB.
Thanks for any clues.