'sum specific values in table postgres
Solution 1:[1]
You need GROUP BY
SELECT
Area,
SUM(sales) AS "sales"
FROM myTable
GROUP BY area
ORDER BY area;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


