I want to convert my output which is like
BachNo|Release Qty
----------
A |10
A |30
A |40
B |90
B |30
I want to transpose this structure into
BatchNO | Qty Release1 | Qty Release2 | Qty Release3
----------------------------------------------------
A | 10 | 30 | 40
B | 90 | 30 | Null
The number of rows generated in the 1st output will be dynamic, so the transposed output can have n number of columns