Skip to content

Commit a9b48c0

Browse files
authored
solution using regexp
1 parent db0e6af commit a9b48c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

basic-select/weather-observation-station-8.sql

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ SELECT DISTINCT City
66
FROM Station
77
WHERE LEFT(City, 1) IN ('a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U') AND
88
RIGHT(City, 1) IN ('a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U');
9+
10+
-- or
11+
12+
SELECT DISTINCT city
13+
FROM station
14+
WHERE city REGEXP '^[aeiou].*[aeiou]$'

0 commit comments

Comments
 (0)