데이터 분석_그로스 해킹
자세히보기

SQL/HackerRank 4

HackerRank-Contest Leaderboard

참고링크 Contest Leaderboard | HackerRank Generate the contest leaderboard. www.hackerrank.com Q> 해커아이디, 해커 이름, 스코어 점수 나타내기 C> - 조건은 hacker_id와 Challenge_id를 그룹바이 기준으로 최대값 찾기 H> select hacker_id , challenge_id , max(score) score from submissions group by hacker_id, challenge_id A> with mx as (select hacker_id, challenge_id ,max(score) score from submissions group by hacker_id, challenge_id ), ss as ..

SQL/HackerRank 2023.01.24

HackerRank - Weather Observation Station 18,19,20

18 참고링크> Weather Observation Station 18 | HackerRank Query the Manhattan Distance between two points, round or truncate to 4 decimal digits. www.hackerrank.com Q> 맨해튼 거리 C> 최소값-최대값 |x1-x2| + |y1-y2| H> 절대값 함수 ABS A> SELECT ROUND(ABS(MIN(LAT_N)-MAX(LAT_N))+ABS(MIN(LONG_W)-MAX(LONG_W)),4) FROM STATION 19 참고링크> 도움 받은 링크> Q> 유클리드 거리 거루하기 C> 루트{(x1-x2)^ +(y1-y2)^} H> SQRT 제곱근 POW 제곱 A> select ROUND(S..

SQL/HackerRank 2023.01.24

HackerRank-Occupations

참고 링크 Occupations | HackerRank Pivot the Occupation column so the Name of each person in OCCUPATIONS is displayed underneath their respective Occupation. www.hackerrank.com C 문제 조건 -> Q 구하는것 -> H 방법 -> A 답 -> L 레슨 Condition 문제 조건> C1. 현재 데이터는 Question.구하는 것> Q1. 의사>교수>가수>배우 정렬로 칼럼이 정렬되어야 함 Q2. 빈셀 데이터는 Null로 채워짐 Key Q. 행으로 되어있는데이터를 열로 바꿔야 함 How. 방법> H1. rnk로 group by 함 H2. 직업이 해당되지 않을 경우, null 처리..

SQL/HackerRank 2023.01.24