si, il numero che mi serve è il toale delle righe che hanno un valore nel campo x
id-------data--------tot1x--tot2x--tot3x--tot4x--tot5x--tot6x--tot7x--tot8x--tot9x--tot10x
103------2012-08-05----2------0------0------0------0------0------0------0------0------0
103------2012-08-07----1------1------0------0------0------0------0------0------0------0
vuol dire che cercando i record che hanno id 103 ho:
per la data 05/08 2 valori 1.x
per la data 07/08 1 valore 1.x e 1 valore 2.x
infatti se vedete nei record ho:
(103, '2012-08-05 03:52:23', 1.60) valore 1.x
(103, '2012-08-05 23:04:58', 1.60) valore 1.x
(103, '2012-08-07 03:04:22', 1.50) valore 1.x
(103, '2012-08-07 14:38:02', 2.20) valore 2.x