In this article, you’ll learn how to use PostgreSQL SUM() function to calculate the sum of a set of values.
To explain with an example, we have a depo table and the daily sales price of the materials is included in the depo table.
We can use the following command to extract the daily total sales price.
We can learn the daily total sales of satis_fiyati with the following command.
SELECT SUM(satis_fiyati) from depo ;