문제풀이/HackerRank19 Select By ID Query all columns for a city in CITY with the ID 1661. The CITY table is described as follows: *조건 1. 모든 컬럼을 가져와라 (CITY TABLE에 있는) 2. ID는 1661이여야 한다 SELECT * FROM CITY WHERE ID = 1661 ; 여기서 1661은 문자가 아닌 숫자이므로 따옴표를 붙이지 않아도 가능하다! Select By ID | HackerRank Select By ID | HackerRank Query the details of the city with ID 1661. www.hackerrank.com 2022. 11. 2. Select All Query all columns (attributes) for every row in the CITY table. The CITY table is described as follows: SELECT * FROM CITY ; 2022. 11. 2. Revising the Select Query I 복습도 해볼겸 다시 풀어보기--! 우선 문제는 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: 요론식으로 되어이따! *조건 1. CITY TABLE에서의 모든 컬럼을 가져올것 2. 인구가 100000명보다 많을 것 3. COUNTRYCODE 가 USA 일것! 그러므로 답은 SELECT * FROM CITY WHERE POPULATION > 100000 AND COUNTRYCODE = 'USA' ; 여기선 USA는 문자니까 따옴표 붙여야하는고 잊지말.. 2022. 11. 2. 이전 1 2 3 4 5 다음