I have a movies
table
SELECT * FROM movies
+-----------------------------------+---------------------------------------------------------+
| MovieTitle | Awards |
+-----------------------------------+---------------------------------------------------------+
| Rocky 20 | Nominated for 1 Oscar. Another 37 wins & 46 nominations |
| Die Hard 51 | Won 1 Oscar. Another 5 wins & 19 nominations. |
| Killer tomatoes | 9 nominations. |
+-----------------------------------+---------------------------------------------------------+
I would like to be able to SUM
all the numbers of award/nominations in Awards
such as to have something like this:
+-----------------------------------+---------------------------------------------------------+-------+
| MovieTitle | Awards | Total |
+-----------------------------------+---------------------------------------------------------+-------+
| Rocky 20 | Nominated for 1 Oscar. Another 37 wins & 46 nominations | 84 |
| Die Hard 51 | Won 1 Oscar. Another 5 wins & 19 nominations. | 25 |
| Killer tomatoes | 9 nominations. | 9 |
+-----------------------------------+---------------------------------------------------------+-------+
Any suggestions on how I could achieve that with only MySQL?