Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA. The CITY table is described as follows:
❗답
SELECT NAME
FROM CITY
WHERE POPULATION >120000 AND COUNTRYCODE = 'USA';
🤔풀이
Revising the Select Query 1과 비슷한 문제다.
NAME columns만 출력하는데 CITY table에서 population이 120000이상, countrycode가 USA인 항목을 뽑으면 된다.
SELECT에 찾고자하는 칼럼(필드명)을 적고 FROM에 table, WHERE에 조건을 적어주면 된다.