Revising the Select Query 1,2
SELECT * FROM CITY WHERE POPULATION > 100000 AND COUNTRYCODE = 'USA'
SELECT NAME FROM CITY WHERE POPULATION > 120000 AND COUNTRYCODE = 'USA'
Select All
SELECT * FROM CITY
Select By ID
SELECT * FROM CITY WHERE ID = 1661
Japanese Cities' Attributes & Names
SELECT * FROM CITY WHERE COUNTRYCODE = 'JPN'
SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN'
'Problem Solving > HackerRank' 카테고리의 다른 글
[ SQL ] HackerRank Basic - MySQL 답안 정리(3) (0) | 2021.07.02 |
---|---|
[ SQL ] HackerRank Basic - MySQL 답안 정리(2) - Weather Observation Station Questions (0) | 2021.06.29 |
댓글