2014-01-08 157 views

回答

2
SELECT   
    YEAR(Periodo) AS year, 
    Datename(month, Periodo) AS month, 
    SUM(Paid) AS paid 
FROM    
    affitto_sa 
GROUP BY 
    YEAR(Periodo), 
    MONTH(Periodo) 
+0

謝謝Preet。它效果很好。 – FeliceM

相關問題