📌 Weather Observation Station 5 문제 더보기 https://www.hackerrank.com/challenges/weather-observation-station-5/problem?isFullScreen=true Weather Observation Station 5 | HackerRank Write a query to print the shortest and longest length city name along with the length of the city names. www.hackerrank.com 문제 해석 STATION 테이블에서 가장 짧은 CITY 이름과 가장 긴 CITY 이름 조회. 그리고 각각의 길이(즉, 이름에 포함된 문자 수)를 조회. 만약 가장 짧은 도시나..
📌 Weather Observation Station 4 문제 더보기 https://www.hackerrank.com/challenges/weather-observation-station-4/problem?isFullScreen=true Weather Observation Station 4 | HackerRank Find the number of duplicate CITY names in STATION. www.hackerrank.com 문제 해석 STATION 테이블 있는 총 CITY 항목 수와 고유 CITY 항목 수이 차이를 구하라. 정답 SELECT COUNT(CITY) - COUNT(DISTINCT CITY) FROM STATION; 풀이 COUNT(CITY) : 총 CITY 항목 수 COUNT(..
📌 Weather Observation Station 3 문제 더보기 https://www.hackerrank.com/challenges/weather-observation-station-3/problem?isFullScreen=true Japanese Cities' Names | HackerRank In this challenge, you will query a list of all the Japanese cities' names. www.hackerrank.com 문제 해석 STATION 테이블에서 ID가 짝수인 CITY 리스트 출력. 중복 제거. LAT_ N은 위도이고, LONG_W은 경도이다. 정답 SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2)=0; 풀이..
📌 Weather Observation Station 1 문제 더보기 https://www.hackerrank.com/challenges/weather-observation-station-1/problem?isFullScreen=true Weather Observation Station 1 | HackerRank Write a query to print the CITY and STATE for each attribute in the STATION table. www.hackerrank.com 문제 해석 STATION 테이블에서 CITY와 STATE 리스트 출력. LAT_ N은 위도이고, LONG_W은 경도이다. 정답 SELECT CITY, STATE FROM STATION; 풀이 FROM절: STATIO..
📌 Japanese Cities' Names 문제 더보기 https://www.hackerrank.com/challenges/japanese-cities-name/problem?isFullScreen=true Japanese Cities' Names | HackerRank In this challenge, you will query a list of all the Japanese cities' names. www.hackerrank.com 문제 해석 COUNTRYCODE가 일본인 'JPN' 데이터의 NAME을 CITY 테이블에서 출력. 정답 SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN'; 풀이 FROM절: CITY 테이블에서 WHERE절: COUNTRYCODE가 '..
📌 Japanese Cities' Attributes 문제 더보기 https://www.hackerrank.com/challenges/japanese-cities-attributes/problem?isFullScreen=true Japanese Cities' Attributes | HackerRank Query the attributes of all the cities in Japan. www.hackerrank.com 문제 해석 COUNTRYCODE가 일본인 'JPN' 데이터를 CITY 테이블에서 출력. 정답 SELECT * FROM CITY WHERE COUNTRYCODE = 'JPN'; 풀이 FROM절: CITY 테이블에서 WHERE절: COUNTRYCODE가 'JPN' 인 SELECT절: 데이터 출력