SELECT `Data Operazione` AS DATA, COUNT( `Codice_Kit_Usato` ) AS OCCORRENZE, `Codice_Kit_Usato` AS KIT
FROM interventi2010
GROUP BY `Data Operazione` , `Codice_Kit_Usato`

ho usato questa query che mi restituisce questo tipo di tabella:

DATA OCCORRENZE KIT
2012-01-11 1 6
2012-01-13 1 4
2012-01-19 1 2
2012-01-19 1 3
2012-01-20 1 1
2012-01-20 1 2
2012-01-20 2 4

il problema che a me dovrebbero comparire come colonne i numeri dei kit e come righe le date nel senso sarebbe stato corretto se come risultato avrei avuto:

DATA KIT 1 KIT2 KIT3 KIT4 KIT5 KIT6
2012-01-11 0 0 0 0 0 1
2012-01-13 0 0 0 1 0 0
2012-01-19 0 1 1 0 0 0
2012-01-20 1 1 0 2 0 0