새소식

IT/SQL

[해커랭크] Revising the Select Query 1

  • -
728x90
반응형

문제링크 : https://www.hackerrank.com/challenges/revising-the-select-query/problem?isFullScreen=true

 

❓문제

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:

 

❗답

SELECT *
FROM CITY
WHERE POPULATION > 100000 AND CountryCode = 'USA';

🤔풀이

간단한 SQL문제이다.

CITY table에서 population이 100000 이상, countrycode가 USA인 항목을 뽑으면 된다.

728x90

'IT > SQL' 카테고리의 다른 글

[해커랭크] Japanese Cities' Names  (0) 2023.03.07
[해커랭크] Japanese Cities' Attributes  (0) 2023.03.07
[해커랭크] Select By ID  (0) 2023.03.07
[해커랭크] Select All  (0) 2023.03.07
[해커랭크] Revising the Select Query 2  (0) 2023.03.06
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.