<pre lang="SQL">----------------------------------------- id | name | ratings | 1 | php | 4 | 2 | css | 7 | 3 | php | 6 | 4 | css | 5 | 5 | html | 6 | 6 | php | 9 | -----------------------------------------
select name,sum(ratings) from table_name group by name
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)