I have a special question regarding MySQL. Please look at the query and the result:
SELECT COUNT(c.Population) AS c, c.City AS cc FROM City c GROUP BY c.City ORDER BY c.City;
261 | Bristol ---------------- 910 | London ---------------- 241 | Manchester ----------------
I would like to get SUM from COUNT, so in this case I would like to see "1412" in the next row or in a new column, it does not really matter.
Any tips? I tried applying subqueries to this, but I could not find the right solution.
Greetings
Tamas
source share