Potato
์•ˆ๋…•ํ•˜์„ธ์š”, ๊ฐ์žก๋‹ˆ๋‹ค?๐Ÿฅ” ^___^ ๐Ÿ˜บ github ๋ฐ”๋กœ๊ฐ€๊ธฐ ๐Ÿ‘‰๐Ÿป

Algorithm/SQL Query test

[MySQL] HackerRank - Revising the select Query II

๊ฐ์ž ๐Ÿฅ” 2021. 7. 20. 02:27
๋ฐ˜์‘ํ˜•

๋ฌธ์ œ๋งํฌ

https://www.hackerrank.com/challenges/revising-the-select-query-2/problem

Query the NAME field for all American cities in the CITY table with populations larger than 120000. The COUNTRYCODE for America is USA. The CITY table is describe as follows:

 

์ •๋‹ต
SELECT NAME
FROM CITY
WHERE POPULATION > 120000
AND COUNTRYCODE LIKE 'USA'

๊ฒฐ๊ณผ ํ™”๋ฉด

 

๋ฐ˜์‘ํ˜•