By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
9 rows affected
id | total |
---|---|
1 | 55.09 |
2 | 62.42 |
order_id | line_number | item | qty |
---|---|---|---|
1 | 1 | Product A | 10 |
1 | 2 | Product B | 15 |
1 | 1 | Product A | 12 |
1 | 1 | Product A | 13 |
2 | 1 | Product A | 23 |
3 | 1 | Product A | 10 |
3 | 2 | Product B | 15 |
id | total |
---|---|
1 | 55.09 |
Warning: Null value is eliminated by an aggregate or other SET operation.