php - How to find Total of sum of rows in mysql? -
i trying rows table. job properly. problem comes when put each row values percentage , tried sum percentage. example, using following query output rows:
select sum( mark_score ) / sum( full_mark ) *50 score nuexam regd = '22' group subject
with above query got following output:
i want sum total of score
. far output. appreciated. welcome php solution.
simply running nested query should work:
select sum(s) score (select sum( mark_score ) / sum( full_mark ) *50 s nuexam regd = '22' group subject) table