SQL/HackerRank (21) 썸네일형 리스트형 [MySQL/HackerRank] Type of Triangle Question 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 sides of equal length. Scalene: It's a triangle with 3 sides of differing lengths. Not A Triangle: The given values of A, B,.. [MySQL/HackerRank] Employee Salaries Question Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employeehaving a salary greater than $2000 per month who have been employees for less than 100 months. Sort your result by ascending employee_id. Input Format The Employee table containing employee data for a company is described as follows: where employee_id is an employee's ID number, name i.. [MySQL/HackerRank] Employee Names Question Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order. Input Format The Employee table containing employee data for a company is described as follows: where employee_id is an employee's ID number, name is their name, months is the total number of months they've been working for the company, and salary is their monthly.. [MySQL/HackerRank] Higher Than 75 Marks Question 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.: Bobby, Robby, etc.), secondary sort them by ascending ID. Input Format The STUDENTS table is described as follows: The Name column only contains uppercase (A-Z) and .. [MySQL/HackerRank] Weather Observation Station 12 Question Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_Wis the western longitude. My Answer select distinct city from station where (left(city, 1) not in ('a','e','i','o','u')) and (right(city, 1) not in.. [MySQL/HackerRank] Weather Observation Station 11 Question 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. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_Wis the western longitude. My Answer select distinct city from station where (left(city, 1) not in ('a','e','i','o','u')) or (right(city, 1) n.. [MySQL/HackerRank] Weather Observation Station 10 Question Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_Wis the western longitude. My Answer select distinct city from station where right(city, 1) not in ('a','e','i','o','u'); Result 출처 : https://www.hackerrank.com/challenges/weath.. [MySQL/HackerRank] Weather Observation Station 9 Question Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_W is the western longitude. My Answer select distinct city from station where left(city, 1) not in ('a','e','i','o','u'); Result 출처 : https://www.hackerrank.com/challenges/wea.. 이전 1 2 3 다음