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

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)