postgresql sum of multiple columns code example
Example: sum of multiple columns in postgres
SELECT
Val1,
Val2,
Val3,
sum(Val1 + Val2 + Val3) as 'Total'
FROM Emp
SELECT
Val1,
Val2,
Val3,
sum(Val1 + Val2 + Val3) as 'Total'
FROM Emp