From 8f68c8b2dd9655ec73b5f151a3e3f91242809291 Mon Sep 17 00:00:00 2001 From: mohdamirmir <47493839+mohdamirmir@users.noreply.github.com> Date: Fri, 24 Mar 2023 11:27:34 +0400 Subject: [PATCH] Update basic-select.md --- basic-select.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/basic-select.md b/basic-select.md index bfdfa6e..cb072d9 100644 --- a/basic-select.md +++ b/basic-select.md @@ -355,6 +355,11 @@ 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'); + + OR + +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)**