목록해커랭크 (5)
개발은 처음이라 개발새발
https://www.hackerrank.com/challenges/earnings-of-employees/problem?h_r=internal-search 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 이번에는 해커랭크의 서브쿼리 퀴즈를 풀어보겠습니다. 문제는 employee라는 테이블이 있고 그안에 아이디와, 이름, 개월수, salary의 컬럼으로 형성돼 있는데요. 문제는 개월수(months)와 salary를 곱한 값이 최대 몇이고 이 ..
https://www.hackerrank.com/challenges/average-population-of-each-continent/problem?h_r=internal-search Average Population of Each Continent | HackerRank Query the names of all continents and their respective city populations, rounded down to the nearest integer. www.hackerrank.com 오늘은 JOIN과 관련된 해커랭크의 퀴즈를 들고왔습니다. 문제는 city, country라는 두개의 테이블이 있고 두 테이블을 조인 시켜 country 테이블에 있는 continent를 기준으로 city 테이..
https://www.hackerrank.com/challenges/what-type-of-triangle/problem?h_r=internal-search Type of Triangle | HackerRank Query a triangle's type based on its side lengths. www.hackerrank.com 오늘은 삼각형 종류를 지정하는 쿼리로 CASE문 연습을 해보겠습니다. 문제를 보면 A,B,C라는 정수를 담은 컬럼이 있고 이 세 컬럼의 숫자들에 조건을 달아 삼각형의 종류를 지정해보라는 퀴즈입니다. ** 삼각형 종류 Equilateral(정삼각형): It's a triangle with sides of equal length. Isosceles(이등변삼각형): It's a ..
https://www.hackerrank.com/challenges/earnings-of-employees/problem?h_r=internal-search 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 이번에는 group by와 관련된 간단한 퀴즈를 풀어보겠습니다. 문제를 해석해보면 months와 salary를 곱해 earings라는 컬럼을 만들고 가장 높은 earings과 해당 earings를 기록한 사람이 몇명인지를 카운트해보라는 것을..
집계함수와 관련해 몇가지 문제를 풀어보고자 합니다. 이번에 SQL을 공부하면서 문제를 풀어볼 수 있는 사이트를 알게 됐는데요. 바로 해커랭크입니다. https://www.hackerrank.com/challenges/challenges/problem Challenges | HackerRank Print the total number of challenges created by hackers. www.hackerrank.com EX) 평균 퀴즈 링크 - https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem?h_r=internal-search 예를 들어서 이런 문제들이 있는데요. 문제를 읽어보니 city..