You are viewing a single comment's thread. Return to all comments →
--difference between the maximum and minimum populations in CITY
WITH CTE AS ( SELECT MAX(POPULATION) AS MAX_POPULATION, MIN(POPULATION) AS MIN_POPULATION FROM CITY ) SELECT MAX_POPULATION - MIN_POPULATION FROM CTE;
Seems like cookies are disabled on this browser, please enable them to open this website
Population Density Difference
You are viewing a single comment's thread. Return to all comments →
--difference between the maximum and minimum populations in CITY
WITH CTE AS ( SELECT MAX(POPULATION) AS MAX_POPULATION, MIN(POPULATION) AS MIN_POPULATION FROM CITY ) SELECT MAX_POPULATION - MIN_POPULATION FROM CTE;