๋ฐ์ํ
๋ฌธ์
https://www.hackerrank.com/challenges/weather-observation-station-10/problem
Weather Observation Station 10 | HackerRank
Query a list of CITY names not ending in vowels.
www.hackerrank.com
Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
์ ๋ต
์ด๋ฒ์๋ ๊ทธ๋ฅ ์ ๊ท์์ ํ์ฉํด์ ํ์ด๋ดค๋ค. ๋์ ์๋ฏธํ๋ $๋ฅผ ํ์ฉํ๋ค.
SELECT DISTINCT CITY
FROM STATION
WHERE CITY NOT REGEXP '[AEIOU]$'
๋ฐ์ํ
'Algorithm > SQL Query test' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[MySQL] HackerRank - Occupations (0) | 2021.07.23 |
---|---|
[MySQL] The PADS (0) | 2021.07.22 |
[MySQL] HackerRank - Weather Observation Station 9 (0) | 2021.07.22 |
[MySQL] HackerRank - Weather Observation Station 8 (0) | 2021.07.22 |
[MySQL] HackerRank - Weather Observation Station 7 (0) | 2021.07.22 |