I am trying to get all rows from table. I could do that job properly. But the problem comes when I put each row values as percentage and tried to sum the percentage. For example, I am using the following query to output all the rows:

```
SELECT SUM( Mark_score ) / SUM( Full_mark ) *50 AS Score
FROM nuexam
WHERE regd = '22'
GROUP BY subject

```

With the above query I got the following output:

![Query Output](https://i.stack.imgur.com/oAdQh.jpg)

I want to sum total of this `Score`. This is so far what I could output. Any help is very much appreciated. I will also welcome the php solution.