What about the select statement, shouldn't it be SUM(subj1+subj2).
select sum(subj1+subj2) means add subj1 and subj2 for every row ( each row gives one value) then finally apply sum on that.
64.3k questions
77.9k answers
243k comments
79.7k users