I have this table in MySQL Database.
YYYYMM  Value   Counts
201701  InSTOCK   10
201702  InSTOCK   5
201703  InSTOCK   2
201704  InSTOCK   4
201702  newstock  4
201703  newstock  8
201704  newstock  8
201701  reserve   3
201702  reserve   3
...
202201
I would like to transpose my Data like this:
 YYYYMM   InSTOCK   newstock  reserve
 201701    10                   3
 201702    5          4         3
 201703    2          8
 201704    4          8
 ...
 202201
Note that each new month a row is gonna be added in YYYYMM. How I can perform this transformation?
