codingtcher.com
Theme Night
Home
Login

How do I get the sum of all columns in SQL

Home » Tutorial Post » How do I get the sum of all columns in SQL

sql sum by column

SELECT [customerID], SUM([BALANCE_AMOUNT]) as sum_BALANCE_AMOUNT
FROM [tableA]
where 1=1
GROUP BY [customerID]

Related Post