Table:
Value | Win
12 3
22 4
44 5
12 11
At the moment getting sum(Win) and order by Value, it returns. So all winning by value.
Value | Win
12 14
22 4
44 5
Now I don’t want to just order by Value, I want to do it like this:
Return all winnings, where value is bigger than 10, 20, 30,40 :
So return should be:
Value | Win
10+ 23
20+ 9
30+ 5
40+ 5
Is this thing possible? Suggestions?
There can be advantages in a grouping table, for example:
This will allow you to build:
Using:
Or even
And finalize with:
One advantage is that you can add and remove groups very easily by editing the table.