Files

14 lines
439 B
SQL
Raw Permalink Normal View History

2017-04-07 20:17:38 -05:00
-- Author: Rodney Shaghoulian
2018-07-27 16:45:56 -07:00
-- Github: github.com/RodneyShag
-- HackerRank: hackerrank.com/RodneyShag
2017-04-07 20:17:38 -05:00
SELECT DISTINCT CITY FROM STATION
WHERE CITY REGEXP '^[aeiou]';
-- Pattern | What the pattern matches
---------------------------------------
-- ^ | Beginning of string
-- [...] | Any character listed between the square brackets
-- Useful Reference: https://www.tutorialspoint.com/mysql/mysql-regexps.htm