This is my table data Student
Student
And this is my query --
Tip: If one of the fields has the possibility to be NULL, then use COALESCE to default these to 0, otherwise total will result in NULL.
total
SELECT *, ( COALESCE(maths, 0) + COALESCE(chemistry, 0) + COALESCE(physics, 0) ) AS total FROM `student`