The PADS | HackerRank Query the name and abbreviated occupation for each person in OCCUPATIONS. www.hackerrank.com 해커랭크에서 처음 만나는 Medium 난이도의 문제였습니다. 크게 어려운 부분은 없긴했지만 union을 사용하다가 오래 걸렸네요..(사실 union을 사용할 필요는 없었습니다) 이번 해커랭크 문제는 2개의 문제가 주어졌습니다. 문제) Generate the following two result sets: 1. Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of..
Type of Triangle | HackerRank Query a triangle's type based on its side lengths. www.hackerrank.com 이번 문제는 삼각형의 유형을 출력하는 문제입니다. 문제) Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table: Equilateral: It's a triangle with 3 sides of equal length. Isosceles: It's a triangle with 2 s..
Higher Than 75 Marks | HackerRank Query the names of students scoring higher than 75 Marks. Sort the output by the LAST three characters of each name. www.hackerrank.com 문제) Query the Name of any student in STUDENTS who scored higher than 75 Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: ..
Weather Observation Station 12 | HackerRank Query an alphabetically ordered list of CITY names not starting and ending with vowels. www.hackerrank.com 이번 문제는 모음으로 시작하지 않고 모음으로 끝나지 않는 도시이름을 출력하는 문제입니다. [Weather Observation Station 11] 문제와 다르게 이번엔 or 조건이 아닌 and 조건입니다. 문제) Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain ..
Weather Observation Station 11 | HackerRank Query a list of CITY names not starting or ending with vowels. www.hackerrank.com 이번 문제는 모음으로 시작하지 않거나 모음으로 끝나지 않는 도시 이름을 출력하는 문제입니다. 문제) Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. 기존에 사용했던 정규표현식을 그대로 활용하면 될 것 같습니다. select distinct city from station wh..
https://www.hackerrank.com/challenges/weather-observation-station-9/problem Weather Observation Station 9 | HackerRank Query an alphabetically ordered list of CITY names not starting with vowels. www.hackerrank.com 어김없이 SQL 정규표현식 문제입니다. 문제) Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. 이번에는 모음으로 시작하지 않는 도시의 이름을 출력하는 문제입니다. 기존 문제 풀..