Snoopy [해커랭크/SQL] 1. Revising the Select Query I
코딩테스트/해커랭크 SQL

[해커랭크/SQL] 1. Revising the Select Query I

Sooyoon Jeong 2022. 12. 11.

🤔 문제 분석

1) Query all columns

2) for all American cities in the CITY table

3) with populations larger than 100000.

4) The CountryCode for America is USA.

 

💡 풀이

SELECT *
FROM CITY
WHERE POPULATION > 100000
AND COUNTRYCODE = "USA"

댓글