Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates.
- 모음(즉, a, e, i, o, u)을 처음 및 마지막 문자로 모두 포함하는 STATION에서 CITY 이름 목록을 쿼리하라
- 결과에 중복 항목이 포함될 수 없음
where LAT_N is the northern latitude and LONG_W is the western longitude.
- LAT_N은 nothern latitude(북쪽지역)이고 LONG_W는 western longitude(서쪽지역)를 의미함
SELECT DISTINCT city
FROM station
WHERE city REGEXP '[aeiou]$' and city REGEXP '^[aeiou]';
문제풀고 정리해서 업로드하는 속도가 점점 빨라지는 것 같다. :)
😁
SELECT DISTINCT CITY
FROM STATION
WHERE CITY REGEXP '^[aeiou].*[aeiou]$'