http://saveabend.blogspot.com/2006/10/mysql-crosstabs.html
varētu sanākt kaut kas tāds(nav testēts):
SELECT
autori.name as autors,
SUM(IF ( MONTH(jaunumi.date) = '1', 1, 0 )) as janvaris_2010
SUM(IF ( MONTH(jaunumi.date) = '2', 1, 0 )) as februaris_2010
SUM(IF ( MONTH(jaunumi.date) = '3', 1, 0 )) as marts_2010
FROM jaunumi
JOIN autori ON jaunumi.author = autori.id
GROUP BY (autori.name)
WHERE YEAR(jaunumi.date) = 2010