Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sum values by month mariadb

SELECT MONTHNAME(o_date), SUM(total) 
FROM theTable
GROUP BY YEAR(o_date), MONTH(o_date)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #values #month #mariadb
ADD COMMENT
Topic
Name
1+7 =