By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| category | sum(sales_volume) | sum(return_volume) | return_rate |
|---|---|---|---|
| CAT_01 | 500 | 450 | 0.9 |
| CAT_02 | 700 | 670 | 0.9571428571428572 |
| category | sum(sales_volume) | sum(return_volume) | return_rate |
|---|---|---|---|
| CAT_01 | 500 | 450 | 0.9 |
| CAT_02 | 700 | 670 | 0.9571428571428572 |