Check out example codes for "mysql average of multiple columns". It will help you in understanding the concepts better.

Code Example 1

SELECT avg(col1 + col2)
FROM test
WHERE uid=5;

Learn ReactJs, React Native from akashmittal.com