Mysql – Sum a column and group it, then divide by a field in another table
I have two tables, one that looks like this: The other has the countries' populations: I would like to sum up the revenue by country (I know how to do this part, e.g Select Sum(Revenue), Country from COMPANIES GROUP BY…