Question: how to calculate sum of different columns in sql?
Answer: + is used for calculating two or more columns in a row. If you want to add two columns together, all you have to do is add them. Then you will get the sum of those two columns for each row returned by the query. What your code is doing is adding the two columns together and then getting a sum of the sums.