HackerRank4 해커랭크 The PADS 문제 URL : https://www.hackerrank.com/challenges/the-pads/problem?isFullScreen=true&h_r=next-challenge&h_v=zen The PADS | HackerRank Query the name and abbreviated occupation for each person in OCCUPATIONS. www.hackerrank.com 문제 설명 : 문제가 2개인거다 첫번째는 occupations 테이블에 이름+(직업이름 첫단어) 두번째는 There are a total of [occupation_count] [occupation]s. 를구하는문제입니다. concat과 substr, 혹은 substring, 혹은 left 를 사용하는 문제인데.. 2022. 12. 15. 해커랭크 Top Earners 문제 URL : https://www.hackerrank.com/challenges/earnings-of-employees/problem?isFullScreen=true Top Earners | HackerRank Find the maximum amount of money earned by any employee, as well as the number of top earners (people who have earned this amount). www.hackerrank.com 문제 설명 : 소득이 가장 많은 금액을 구하라는겁니다 단, 중복된것이 몇개나 있는지 출력하는 문제입니다. 소득(earning) = salary * months 이걸로 구해야겠죠 2가지 답이있는데 처음풀었을때와 2번째로 풀었을때 .. 2022. 12. 15. 해커랭크 Weather Observation Station 5 ->Mysql 문제 URL : https://www.hackerrank.com/challenges/weather-observation-station-5/problem?isFullScreen=true Weather Observation Station 5 | HackerRank Write a query to print the shortest and longest length city name along with the length of the city names. www.hackerrank.com 문제 : city 이름중에 가장긴이름과 가장작은이름 을찾으면서 동시에 그 길이를 출력하라는겁니다. 각각 한개씩 출력하기때문에 이문제 좀 고민을 좀했어야했습니다. max나 min을 이용하는줄알았는데 order by를 이용해서 li.. 2022. 11. 30. 해커랭크 Weather Observation Station 6 ->MySql 문제 URL : https://www.hackerrank.com/challenges/weather-observation-station-6/problem?isFullScreen=true Weather Observation Station 6 | HackerRank Query a list of CITY names beginning with vowels (a, e, i, o, u). www.hackerrank.com 문제 설명 : station 테이블의 city컬럼의 데이터값중에 이름으로 a ,i,e,o,u 로 시작하는데이터를 출력하라는뜻인데 like로 사용하니 select city from station where city like 'a%' or city like 'e%' or city like 'i%' or.. 2022. 11. 30. 이전 1 다음