I have a question that I cannot find answer to.
Basically, I have two columns:
variable 10 || 14 || 18 || 20 || 29 || 38 || 39 || 41 || 46 ...
values 857 || 736 || 84 || 1 || 362 || 74 || 183 || 77 || 944 ...
I want to output the sum of all the values in each variable with 10s (10, 14, 18) then 20s (20, 29) then 30s (38, 39) so on and so forth.
How would I construct the query?
try this:
result (assuming your columns are named
varandvalnow: