How to find percentage value from a table column : <p>I am trying to find the a percentage value of every numeric value with the same id in my table. For example, if my table consists of this:</p>

<pre><code>id  answer          points
1   answer 1        3
1   answer 2        1
1   answer 3        10
1   answer 4        5
1   answer 5        6
1   answer 6        10
1   answer 7        10
1   answer 8        2
</code></pre>

<p>If max points are 80, how can I display the current result (point) from database in percentage form?</p>
