algorithm (114) 썸네일형 리스트형 [HackerRank] MySQL - The PADS 문제 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 asc.. [HackerRank] MySQL - Type of Triangle 문제 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 sides of equal length. Isosceles: It's a triangle with sides of equal length. Scalene: It's a triangle with sides of differing lengths. Not A Triangle: The given values of A, B, and C don't.. [HackerRank] MySQL - Employee Salaries 문제 Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than per month who have been employees for less than 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 is their name, m.. [programmers] MySQL - Lv.4 보호소에서 중성화한 동물 (join) 문제 풀이 SELECT b.animal_id, b.animal_type, b.name from animal_ins a join animal_outs b on a.animal_id = b.animal_id where a.sex_upon_intake like 'Intact%' and (b.sex_upon_outcome like 'Spayed%' or b.sex_upon_outcome like 'Neutered%') order by b.animal_id; [HackerRank] MySQL - Employee Names 문제 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 salar.. [programmers] MySQL - Lv.3 헤비 유저가 소유한 장소 문제 풀이 SELECT * from places where host_id in(select host_id from places group by host_id having count(host_id) > 1) order by id [HackerRank] MySQL - Higher Than 75 Marks 문제 Query the Name of any student in STUDENTS who scored higher than 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 lowercase.. [programmers] MySQL - Lv.3 없어진 기록 찾기 (join) 문제 풀이 SELECT a.animal_id, a.name from animal_outs a left join animal_ins b on a.animal_id = b.animal_id where b.animal_id is null order by a.animal_id; 이전 1 ··· 6 7 8 9 10 11 12 ··· 15 다음