SQL6 [HackerRank SQL] Weather Observation Station 7 (Oracle) Weather Observation Station 7 Problem Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. (STATION에서 모음(a, e, i, o, u)으로 끝나는 도시(CITY) 이름의 목록을 조회하라. 결과에는 중복이 포함되어서는 안 됨.) Input Format The STATION table is described as follows: Solution(Oracle) SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '%a' OR CITY LIKE '%e' OR CITY LIKE '%i'.. 2024. 3. 31. [HackerRank SQL] Weather Observation Station 6 (Oracle) Weather Observation Station 6 Problem Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. (STATION에서 모음(a, e, i, o, u)으로 시작하는 도시(CITY) 이름의 목록을 조회하시오. 결과에는 중복이 포함되어서는 안 됨.) Input Format The STATION table is described as follows: Solution(Oracle) SELECT DISTINCT CITY FROM STATION WHERE (CITY LIKE 'A%' OR CITY LIKE 'E%' OR .. 2024. 3. 30. [HackerRank SQL] Weather Observation Station 5 (Oracle) Weather Observation Station 5 Problem 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). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. The STATION table is described as follows: (STATION 테이블에서 가장 짧고, 가장 긴 CITY 이름과 그에 해당하는 이름 길이(즉,.. 2024. 3. 29. [HackerRank SQL] Weather Observation Station 4 (Oracle) Weather Observation Station 4 Problem Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table. The STATION table is descrived as follows: (테이블 내 CITY 항목의 총 개수와 테이블 내 고유 CITY 항목의 수 사이의 차이를 찾으시오.) For example, if there are three records in the table with CITY values 'New York', 'New York', 'Bengalaru', there are 2 different cit.. 2024. 3. 28. 이전 1 2 다음