I have following records
DocNo PrnOrd DESCR ITEMCD AMT
1 1 D1 16844 43330
1 2 D2 16844
1 7 D7 16844 2166.5
1 21 D21 16844 0.5
1 1 D1 937 58188
1 7 D7 937 2909.4
1 21 D21 937
1 23 D23 937 -0.02
want to present like this
DocNo,ITEMCD, D1, D2, D7, D21, D23,
1 , 16844,43330, , 2166.5, 0.5, ,
1 , 937,58188,2909.4, , ,-0.02,
DESCR field value as a column and its AMT as a value