[SQL] Population Census
1443 ワード
✅ Population Census
📝 質問する
Given the
CITY
and COUNTRY
tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'.Note
: CITY.CountryCode and COUNTRY.Code are matching key columns.Input Format
The CITY
and COUNTRY
tables are described as follows:

💻 に答える
SELECT SUM(A.POPULATION)
FROM CITY AS A INNER JOIN COUNTRY AS B
ON A.COUNTRYCODE = B.CODE
WHERE B.CONTINENT = 'Asia';
Reference
この問題について([SQL] Population Census), 我々は、より多くの情報をここで見つけました https://velog.io/@revudn46/SQL-Population-Censusテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol