Learn SQL
Arithmetic - Operations on columns
26.6
Lesson

Arithmetic operations on combination of columns

Arithmetic operations can be applied to get data from a combination of columns too.

Let’s say we want to get the sum of age and grade for all students.

Think what should the result be if either age or grade is null for any student.