From 9dbb45762bcaa7cb2918b3d8c522f74a398b2980 Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 18 May 2019 12:23:12 +0200 Subject: [PATCH] mysql: add weather-observation-station-8 --- mysql/weather-observation-station-8/solution.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 mysql/weather-observation-station-8/solution.sql diff --git a/mysql/weather-observation-station-8/solution.sql b/mysql/weather-observation-station-8/solution.sql new file mode 100644 index 0000000..756495f --- /dev/null +++ b/mysql/weather-observation-station-8/solution.sql @@ -0,0 +1,6 @@ +SET @vowels = 'a,e,i,o,u'; + +SELECT DISTINCT CITY +FROM STATION +WHERE FIND_IN_SET(LEFT(CITY, 1), @vowels) +AND FIND_IN_SET(RIGHT(CITY, 1), @vowels); \ No newline at end of file