1-- Sum Columns only show up in SELECT statement 2-- All other columns must be in both3SELECT categories_column, SUM(units_column) AS total_units
4FROM schema.table
5GROUPBY categories_column;
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content