Transpose Data
Posted: Wed Dec 05, 2007 4:54 pm
Hi all,
Can any body guide me in the below scenario
Table A has the below data
I want to transpose the Item_Type and Quantity in the below manner
Note: The number of Item_types is known (5 in my case)
Let me know if more information is needed
Any pointers
Can any body guide me in the below scenario
Table A has the below data
Code: Select all
Item1 Item2 Item3 Item_type Item_Qty
---- ----- ----- --------- --------
A B C x 1
A B C y 2
A B C z 5
D E F y 2
D E F x 6
D E F u 8
D E F m 9
I want to transpose the Item_Type and Quantity in the below manner
Code: Select all
Item1 Item2 Item3 Item_type_x Item_type_y Item_type_z Item_type_u Item_type_m
----- ----- ----- ----------- ----------- ----------- ----------- -----------
A B C 1 2 5 0 0
D E F 6 2 0 8 9
Let me know if more information is needed
Any pointers