hackerrank

데이터/SQL

[HackerRank] Weather Observation Station 5 문제풀이 [10]

📌 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 이름 조회. 그리고 각각의 길이(즉, 이름에 포함된 문자 수)를 조회. 만약 가장 짧은 도시나..

데이터/SQL

[HackerRank] Weather Observation Station 4 문제풀이(COUNT 함수) [9]

📌 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(..

데이터/SQL

[HackerRank] Weather Observation Station 3 문제풀이(MOD 함수) [8]

📌 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; 풀이..

데이터/SQL

[HackerRank] Weather Observation Station 1 문제풀이 [7]

📌 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..

데이터/SQL

[HackerRank] Japanese Cities' Names 문제풀이 [6]

📌 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가 '..

데이터/SQL

[HackerRank] Japanese Cities' Attributes 문제풀이 [5]

📌 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절: 데이터 출력

엑스-칼리버
'hackerrank' 태그의 글 목록 (3 Page)