Hackerrank-SQL 15

[Hackerrank-SQL] Weather Observation Station 6

Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. ​ 이름이 모음으로 시작하는 도시 추출해라. ​ [ORACLE] ​ ​ * SUBSTR(문자열, 시작위치, 길이) 시작위치에서 길이만큼 자르기 ​ *INSTR(문자열, 찾을문자열, 시작위치, 발생횟수) 문자열에서 찾고자하는 문자열과 일치하는 위치를 반환

Data Analyst/SQL 2021.08.01

[Hackerrank-SQL] Weather Observation Station 5

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. ​ ​ 이름이 가장 짧은 도시와 가장 긴 도시의 이름과 길이를 각각 추출하고, 만약 길이가 같다면 이름의 알파벳 순으로 출력해라. ​ ​ [ORACLE] ​ ​ *서브쿼리 (SubQuery)

Data Analyst/SQL 2021.08.01