By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | price | volume |
---|---|---|
1 | 1 | 1 |
2 | 2 | 1 |
3 | 3 | 4 |
4 | 4 | 9 |
5 | 5 | 16 |
6 | 6 | 25 |
7 | 7 | 36 |
8 | 8 | 49 |
9 | 9 | 64 |
10 | 10 | 81 |
price | summ |
---|---|
1 | 1 |
2 | 2 |
3 | 6 |
4 | 15 |
5 | 31 |
6 | 56 |
7 | 92 |
8 | 141 |
9 | 205 |
10 | 286 |
AVG(price) |
---|
2.5000 |
AVG(price) |
---|
2.5000 |