I want to make a table that has just the totals from another table.
Example source table:
equip color size
x red S
y green M
z red L
f red L
Output table
[Equipment total] [red] [green] S M L
4 3 1 1 1 2
Is there a simple way to do this? They only way I know how is to make separate queries and combine them into one later