https://www.hackerrank.com/challenges/revising-the-select-query/
Revising the Select Query I | HackerRank
Query the data for all American cities with populations larger than 100,000.
www.hackerrank.com
Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.
The CITY table is described as follows:

기본 WHERE문 사용 문제
Countrycode 가 USA
POUPLATION 이 10만 초과인 경우
코드
더보기
SELECT *
FROM CITY
WHERE POPULATION > 100000 AND COUNTRYCODE = 'USA';
728x90
'서버 > MYSQL' 카테고리의 다른 글
| [MYSQL] HACKERRANK - Japanese Cities' Names (0) | 2022.05.31 |
|---|---|
| [MYSQL] HACKERRANK - Japanese Cities' Attributes (0) | 2022.05.31 |
| [MYSQL] HACKERRANK - SELECT BY ID (0) | 2022.05.31 |
| [MYSQL] HACKERRANK - SELECT ALL (0) | 2022.05.31 |
| [MYSQL] HACKERRANK - Revising the Select Query II (0) | 2022.05.31 |
댓글