How to sum each user totals per category

Michael Buluma

table preview

I have the above table which I'd like to sum all users total per category. Totals for user 1, User 2, ..., user 20 to be shown at the end of the table. how can i achieve this in Joomla?

Akshay

This will work

SELECT `Category_ID` ,SUM( `user1` ) AS user1, SUM( `user1` ) AS user2 , ...
FROM `table_name`
GROUP BY `Category_ID` 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Sum/Group rows into totals for each day

From Dev

How to sum the Group totals only?

From Dev

How to sum the Group totals only?

From Dev

SQL sum non-distinct weights for distinct rows with category totals

From Dev

How to combine same labels into one row and sum all totals for each corporation

From Dev

column that shows the sum() for each category

From Dev

mysql sum and count per category append to matching category rows

From Dev

Get each price per month for a category?

From Dev

How to get sum totals of columns in SQL?

From Dev

How to rearrange columns in libreoffice calc as per column totals?

From Dev

How to subtract totals of 2 different groupings of the same column per month

From Dev

How to maintain cumulative sum for each User in SQL server

From Dev

MySQL find user rank for each category

From Dev

How to have different layouts per category?

From Dev

How to add 'per person' to a category price in woocommerce

From Dev

Displaying Document Totals in Category View

From Dev

How to sum amount per date?

From Dev

DELETE records Except Max Category ID per User - MySQL

From Dev

Query for adding totals sum

From Dev

How to aggregate totals for a given week and each respective weekday?

From Dev

Showing totals as per certain conditions

From Dev

Rails: How to sum and display total quantity by category

From Dev

LIbreoffice calc: how to calculate sum of values by category

From Dev

Rails: How to sum and display total quantity by category

From Dev

Create a view/template that allows for user selected date filtering that includes Sum totals for child objects?

From Dev

How to select the sencond,third record of each category?

From Dev

How to retrieve one random row for each category?

From Dev

How to add description on each category in Core Plot

From Dev

How to Fetch a data with particular percentage in each category

Related Related

  1. 1

    Sum/Group rows into totals for each day

  2. 2

    How to sum the Group totals only?

  3. 3

    How to sum the Group totals only?

  4. 4

    SQL sum non-distinct weights for distinct rows with category totals

  5. 5

    How to combine same labels into one row and sum all totals for each corporation

  6. 6

    column that shows the sum() for each category

  7. 7

    mysql sum and count per category append to matching category rows

  8. 8

    Get each price per month for a category?

  9. 9

    How to get sum totals of columns in SQL?

  10. 10

    How to rearrange columns in libreoffice calc as per column totals?

  11. 11

    How to subtract totals of 2 different groupings of the same column per month

  12. 12

    How to maintain cumulative sum for each User in SQL server

  13. 13

    MySQL find user rank for each category

  14. 14

    How to have different layouts per category?

  15. 15

    How to add 'per person' to a category price in woocommerce

  16. 16

    Displaying Document Totals in Category View

  17. 17

    How to sum amount per date?

  18. 18

    DELETE records Except Max Category ID per User - MySQL

  19. 19

    Query for adding totals sum

  20. 20

    How to aggregate totals for a given week and each respective weekday?

  21. 21

    Showing totals as per certain conditions

  22. 22

    Rails: How to sum and display total quantity by category

  23. 23

    LIbreoffice calc: how to calculate sum of values by category

  24. 24

    Rails: How to sum and display total quantity by category

  25. 25

    Create a view/template that allows for user selected date filtering that includes Sum totals for child objects?

  26. 26

    How to select the sencond,third record of each category?

  27. 27

    How to retrieve one random row for each category?

  28. 28

    How to add description on each category in Core Plot

  29. 29

    How to Fetch a data with particular percentage in each category

HotTag

Archive