Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Conta i record per ogni mese in un anno

SELECT    COUNT(*) 
FROM      table_emp 
WHERE     YEAR(ARR_DATE) = '2012' 
GROUP BY  MONTH(ARR_DATE)