Problem : https://www.hackerrank.com/challenges/weather-observation-station-8/problem
Solution :
/*
Enter your query here.
*/
SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) IN ('a','e','i','o','u') AND RIGHT(CITY,1) IN ('a','e','i','o','u');
Problem : https://www.hackerrank.com/challenges/weather-observation-station-8/problem
Solution :
/*
Enter your query here.
*/
SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) IN ('a','e','i','o','u') AND RIGHT(CITY,1) IN ('a','e','i','o','u');
Solution :
/*
Enter your query here.
*/
SELECT CITY , STATE FROM STATION;
Solution :
SELECT NAME FROM CITY WHERE COUNTRYCODE = "JPN";
Solution :
SELECT * FROM CITY WHERE ID = 1661;