Answers for "mysql sum and group by"

SQL
0

mysql sum with group by

-- Sum Columns only show up in SELECT statement 
-- All other columns must be in both
SELECT categories_column, SUM(units_column) AS total_units
FROM schema.table
GROUP BY categories_column;
Posted by: Guest on August-15-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language