diff --git a/src/hackerrank-basic-select.md b/src/hackerrank-basic-select.md index 1fba198..3bdbacb 100644 --- a/src/hackerrank-basic-select.md +++ b/src/hackerrank-basic-select.md @@ -128,7 +128,7 @@ Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Yo Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates. SELECT DISTINCT city FROM - (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%') + (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%') as c WHERE city LIKE '%a' OR city LIKE '%e' OR city LIKE '%i' OR city LIKE '%o' OR city LIKE '%u'; @@ -236,4 +236,4 @@ Todd Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than $2000 per month who have been employees for less than 10 months. Sort your result by ascending employee_id. - SELECT name FROM employee WHERE salary > 2000 AND months < 10 ORDER BY employee_id; \ No newline at end of file + SELECT name FROM employee WHERE salary > 2000 AND months < 10 ORDER BY employee_id;