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