[MySQL/HackerRank] The PADS
·
SQL/HackerRank
Generate the following two result sets:Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S).Query the number of ocurrences of each occupation in OCCUPATIONS. Sort the occurrences in ascendin..
[MySQL/HackerRank] Type of Triangle
·
SQL/HackerRank
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, and C don't ..
[MySQL/HackerRank] Employee Salaries
·
SQL/HackerRank
Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than $2,000 per month who have been employees for less than 10 months. Sort your result by ascending employee_id. Input FormatThe Employee table containing employee data for a company is described as follows:where employee_id is an employee's ID number, name is their na..
[MySQL/HackerRank] Employee Names
·
SQL/HackerRank
Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order.Input FormatThe 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 salary.Samp..
[MySQL/HackerRank] Higher Than 75 Marks
·
SQL/HackerRank
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 FormatThe STUDENTS table is described as follows:  The Name column only contains uppercase (A-Z) and lowercase ..
[MySQL/HackerRank] Weather Observation Station 12
·
SQL/HackerRank
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 FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude. SELECT DISTINCT CITYFROM STATIONWHERE UPPER(LEFT(CITY, 1)) NOT IN ('A', 'E', 'I', 'O', 'U') AND UPPER(RIGHT(CITY, 1)) NOT IN (..
[MySQL/HackerRank] Weather Observation Station 11
·
SQL/HackerRank
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 FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude.SELECT DISTINCT CITYFROM STATIONWHERE NOT (UPPER(LEFT(CITY, 1)) IN ('A', 'E', 'I', 'O', 'U')) OR NOT (UPPER(RIGHT(C..
[MySQL/HackerRank] Weather Observation Station 10
·
SQL/HackerRank
Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates.Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude. SELECT DISTINCT CITYFROM STATIONWHERE NOT UPPER(RIGHT(CITY, 1)) IN ('A', 'E', 'I', 'O', 'U');
[MySQL/HackerRank] Weather Observation Station 9
·
SQL/HackerRank
Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates.Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude.SELECT DISTINCT CITYFROM STATIONWHERE NOT UPPER(LEFT(CITY, 1)) IN ('A', 'E', 'I', 'O', 'U');
[MySQL/HackerRank] Weather Observation Station 8
·
SQL/HackerRank
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.Input FormatThe STATION table is described as follows:where LAT_N is the northern latitude and LONG_W is the western longitude.SELECT DISTINCT CITYFROM STATIONWHERE (UPPER(LEFT(CITY, 1)) IN ('A', 'E', 'I', 'O', 'U') )AND (U..
_xxxx
'HackerRank' 태그의 글 목록 (2 Page)