I am working on a report where I have to extract total quantity executed by traders per exchange, I am am able to get the data in below format eg-
username Exchange totalsharestraded
A BSE 1000000
A NSE 2000000
B BSE 30000
B NSE 4000000
But the number of exchanges are more than 12 and the number of users are 60 and the reporting requirement is to present the data in below format -
Username NSE BSE
A 2000000 1000000
B 4000000 30000
Any suggestions how to use pivot clause for above requirements?