Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions basic-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ where LAT_N is the northern latitude and LONG_W is the western longitude.
**Solution**
```sql
SELECT DISTINCT CITY FROM STATION WHERE LOWER(SUBSTR(CITY,1,1)) NOT IN ('a','e','i','o','u') OR 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%')) OR ((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 12](https://www.hackerrank.com/challenges/weather-observation-station-12/problem)**
Expand Down