How to sum two columns value in SQL
In this article, we are going to learn how to sum two columns' values in SQL. The first thing we need is a table with two columns and the data type of each column must be integer or float. We will use the below query to insert one row into our table.
sql add two values together
SELECT ID, SUM(VALUE1 + VALUE2)
GROUP BY ID
--or simple addition
(VALUE1 + VALUE2) as AddedValues
If you want to sum two columns in SQL, you can use the following syntax which i can mentioned above.