Skip to content
Advertisement

SQL sum values in columns for each row

I have the following table:

how do I sum the values of say, column 2 and 3, to return the sum?

The expected result is:

Advertisement

Answer

You can do maths within a select statement, so the following will work:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement