I have multiple rows with the same name in this table, and I want to show only one of row of each. For example, with the following data:
| name | number |
+------+--------+
| exe  |   1    |
| exe  |   10   |
| exe  |   2    |
| bat  |   1    |
| exe  |   3    |
| bat  |   4    |
I would like to see the following results:
| name | number | 
+------+--------+
| exe  |  16    |
| bat  |  5     |
How can I achieve this result?
Duplicate response: My question only have 1 table, the JOIN ..ON command creates confusion in understanding, i think this simple question can help many guys!
 
     
    