HackerRank Basic
-
[HackerRank_Basic] Revising the Select Query IIHackerRank Basic 2024. 10. 27. 23:40
Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA. > 인구가 12만명보다 많고, CountryCode가 USA인 CITY 테이블의 NAME 컬럼 추출 키 포인트)1. NAME 컬럼을 불러와야 한다. > SELECT NAME2. 조건은 CountryCode가 USA이고, 인구가 12만명보다 많아야 한다. > WHERE COUNTRYCODE = 'USA' AND POPULATION > 120000 풀이) SELECT NAME FROM C..
-
[HackerRank_Basic] Revising the Select Query IHackerRank Basic 2024. 10. 27. 23:28
문제) Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA.> 인구가 10만명보다 많고, CountryCode가 USA인 CITY 테이블의 모든 컬럼 추출 키 포인트)1. 모든 컬럼을 불러와야 한다. > SELECT *2. 조건은 CountryCode가 USA이고, 인구가 10만명보다 많아야 한다. > WHERE COUNTRYCODE = 'USA' AND POPULATION > 100000 풀이) SELECT *FROM CITYWHERE ..