How can you divide columns in order to get a percentage from them? What I want to do is this:I want a list of countries and cities where the city population is greater than 10% of the country population.Here is what i have so far:SELECT c.Name as "Country Name" ,ci.Name AS "City Name" ,c.Population AS "Country Population" ,ci.Population AS "City Population"FROM Country cINNER JOIN City ciON c.Code = ci.CountryCodeGROUP BY c.name, ci.name
I need to incorporate this now(ci.Population ÷ c.Population) × 100 = percentageThen I guess use a 'having > 10'Can anyone help?Thank you