By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 4 Duplicates: 0 Warnings: 0
| id | amount | name |
|---|---|---|
| 1 | 4 | Michael |
| 2 | 15 | Bara |
| 3 | 4 | Michael |
| 4 | 6 | John |
| sum(amount) | name |
|---|---|
| 15 | Bara |
| 8 | Michael |
| sum(amount) | name |
|---|---|
| 6 | John |
| sum(amount) | name |
|---|---|
| 15 | Bara |
| 8 | Michael |
| sum(amount) | name |
|---|---|
| 15 | Bara |
| 8 | Michael |
Unknown column 'amount' in 'field list'
Unknown column 'name' in 'field list'