With a simple table of dates and values:
+------------+-------+
| date | count |
+------------+-------+
| 2015-01-01 | 5 |
| 2015-01-02 | 2 |
| 2015-07-02 | 20 |
How can I get a matrix of all months as columns, and days as rows, with the values, with a single MySQL query possibly using subselects and joins?
+-----+----------+----------+---------
| Day | January | February | March...
+-----+----------+----------+---------
| 1 | 5 | 8 | 12
| 2 | 2 | 9 | 5
| 3 | 5 | 12 | 6
Is this possible, without using PHP or any other scripting tool?
This will be used to visualize trends and peaks for days of months.