# [HackerRank] Revising the Select Query II

- Author: @mildsalmon
- Published: 2021-09-14
- Updated: 2021-09-21
- Source: http://blex.me/@mildsalmon/hackerrank-revising-the-select-query-ii
- Tags: 코딩테스트, 문제, 오라클, select, hackerrank, sql

---

# 1. Revising the Select Query II

### A. 문제

**CITY 테이블** 안에 있는 모든 American cities 중에 **population**이 120000보다 큰 **NAME** 필드를 출력하는 Query를 작성하라.

America의 **ConuntryCode**는 USA이다.

### B. 내 답안

```SQL

SELECT NAME  
FROM CITY  
WHERE countrycode='USA' AND population>120000;

```

##### a. 회고

> 결론

- 영어는 어렵다.. 그래도 쉬운 것부터 해보면서 익숙해지자.

# 참고문헌

[Revising the Select Query II | HackerRank](https://www.hackerrank.com/challenges/revising-the-select-query-2/problem). HackerRank. (accessed Sep 14, 2021)
