Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

group by por mes sql mysql

SELECT COUNT(idcompra) 
FROM compra 
WHERE YEAR(fecha_compra) = 2021 GROUP BY MONTH(fecha_compra)
 
PREVIOUS NEXT
Tagged: #group #por #mes #sql #mysql
ADD COMMENT
Topic
Name
3+7 =