By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
VERSION() |
---|
8.0.26 |
id | val |
---|---|
1 | 1 |
1 | 2 |
2 | 3 |
2 | 4 |
id | average | ordering_expression |
---|---|---|
1 | 1.5000 | -0.5000 |
2 | 3.5000 | -2.5000 |
id | average | ordering_expression |
---|---|---|
2 | 3.5000 | -2.5000 |
1 | 1.5000 | -0.5000 |