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:

query 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 

Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -