Suppose you have a table named " Students "

Now you want to know the overall grades scored by each student. So enter the following query
SELECT Name, S1, S2, SUM(S1+S2) AS TOTAL FROM Students GROUP BY Name, S1, S2 ORDER BY Total;
You will get the following result.

Rakesh anand
source share