We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 6
Weather Observation Station 6
Sort by
recency
|
4625 Discussions
|
Please Login in order to post a comment
SELECT DISTINCT City FROM Station WHERE City LIKE 'A%' or City LIKE 'E%' or City LIKE 'I%' or City LIKE 'O%' or City LIKE 'U%';
Why this one is not correct?
select distinct city from station where substr(lower(city),1,1) in ('a','e','i','o','u');
Query resolved in two ways in SQL Server:
1st SELECT city FROM station WHERE LEFT(city, 1) IN ('A','E','I','O','U');
2nd SELECT city FROM station WHERE city LIKE 'A%' OR city LIKE 'E%' OR city LIKE 'I%' OR city LIKE 'O%' OR city LIKE 'U%';
Query resolved in two ways in SQL Server:
1st SELECT city FROM station WHERE LEFT(city, 1) IN ('A','E','I','O','U');
2nd SELECT city FROM station WHERE city LIKE 'A%' OR city LIKE 'E%' OR city LIKE 'I%' OR city LIKE 'O%' OR city LIKE 'U%';
SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) IN ('a','e','i','o','u');