I have a table looks like this:
year | url | view
-------------------------------
2016 | /document/item.pdf | 21
2015 | /document/item.pdf | 35
2014 | /document/item.pdf | 41
and I want build another table looks like this :
url | 2014 | 2015 | 2016
---------------------------------------
/document/item.pdf | 41 | 35 | 21
I don't really now how I have to write my mysql query to do that. Thanks for your help :)