전체 글 118

[HackerRank] Weather Observation Station 5

문제 설명 (Difficulty: Easy) Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). (STATION에서 CITY 이름이 가장 짧은 도시, 가장 긴 도시, 각각의 길이를 쿼리하세요. (예: 이름의 문자 수)) If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. (1개 이상의 가장 작은 또는 가장 큰 도시가 있다면, 알파벳 순으로 ..

SQL/HackerRank 2022.01.21

[HackerRank] Weather Observation Station 4

문제 설명 (Difficulty: Easy) Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table. (테이블에 있는 CITY 총 항목 수와 고유한 CITY 항목 수 사이의 차이를 찾으세요.) The STATION table is described as follows: (STATION 테이블은 다음과 같이 설명됩니다.) where LAT_N is the northern latitude and LONG_W is the western longitude. (여기서 LAT_N은 북쪽 위도이고, LONG_W는 서쪽 경도입니다.) For exam..

SQL/HackerRank 2022.01.19

[HackerRank] Weather Observation Station 3

문제 설명 (Difficulty: Easy) Query a list of CITY names from STATION for cities that have an even ID number. (ID 번호가 짝수인 도시에 대해 STATION 테이블에서 CITY 이름 목록을 쿼리하세요.) Print the results in any order, but exclude duplicates from the answer. (결과를 순서에 상관 없이 출력하되, 답변에서 중복을 제외하세요.) The STATION table is described as follows: (STATION 테이블은 다음과 같이 설명됩니다.) where LAT_N is the northern latitude and LONG_W is the wes..

SQL/HackerRank 2022.01.19

[HackerRank] Revising the Select Query II

문제 설명 (Difficulty: Easy) Query the NAME field for all American cities in the CITY table with populations larger than 120000. (인구가 120000보다 큰 CITY 테이블의 모든 미국 도시에 대한 이름 열을 쿼리하세요.) The CountryCode for America is USA. (미국의 CountryCode는 USA입니다.) The CITY table is described as follows: (CITY 테이블은 다음과 같이 설명됩니다.) 풀이 과정 (MySQL)

SQL/HackerRank 2022.01.12