diff --git a/basic-select.md b/basic-select.md index bfdfa6e..0e8ff69 100644 --- a/basic-select.md +++ b/basic-select.md @@ -353,8 +353,10 @@ The STATION table is described as follows: where LAT_N is the northern latitude and LONG_W is the western longitude. **Solution** -```sql -SELECT DISTINCT CITY FROM STATION WHERE UPPER(SUBSTR(CITY, LENGTH(CITY), 1)) NOT IN ('A','E','I','O','U') AND LOWER(SUBSTR(CITY, LENGTH(CITY),1)) NOT IN ('a','e','i','o','u'); + +SELECT DISTINCT city +FROM station +WHERE city NOT LIKE '%a' AND city NOT LIKE '%e' AND city NOT LIKE '%i' AND city NOT LIKE '%o' AND city NOT LIKE '%u'; ``` ###**[Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11/problem)**