일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- row_number
- 직장인인강
- 어려웠음
- 직장인자기계발
- easy
- 파이썬을활용한시계열데이터분석AtoZ올인원패키지Online
- join
- recursive
- solvesql
- 프리미엄
- SELF-JOIN
- lv.4
- Hard
- 패스트캠퍼스후기
- 해커랭크
- 패캠챌린지
- LeetCode
- group by
- medium
- 시계열데이터분석
- 다시풀어보기
- SQL
- HACKER_RANK
- 파이썬을활용한시계열데이터분석
- MySQL
- 프로그래머스
- Hackerrank
- meidum
- RANK
- 패스트캠퍼스
- Today
- Total
목록medium (65)
~고군분투 인생살이~
The Report | HackerRank Write a query to generate a report containing three columns: Name, Grade and Mark. www.hackerrank.com 문제 조건 이름, 등급, 점수의 세 개의 열이 포함된 보고서를 출력하시오. 8 보다 낮은 등급을 받은 학생들의 이름은 출력하지 않습니다. 정렬 순서는 아래와 같습니다 : 등급을 기준으로 내림차순 -> 이름을 알파벳 순으로 정렬 -> 점수를 기준으로 오름차순 문제 풀이 select (case when g.grade < 8 then Null else s.name end) as name, g.grade, s.marks from students s join grades g on s.mark..
Weather Observation Station 20 | HackerRank Query the median of Northern Latitudes in STATION and round to 4 decimal places. www.hackerrank.com 문제 조건 북부 위도(LAT_N)의 중앙값을 출력하시오 문제 풀이 WITH TEMP AS( SELECT LAT_N, PERCENT_RANK() OVER(ORDER BY LAT_N) AS PERCENT FROM STATION) SELECT ROUND(LAT_N,4) FROM TEMP WHERE PERCENT = 0.5
Weather Observation Station 19 | HackerRank Query the Euclidean Distance between two points and round to 4 decimal digits. www.hackerrank.com 문제 조건 두 점 사이의 거리를 유클리드 거리 공식을 활용하여 출력하시오. 문제 풀이 SELECT ROUND( SQRT( POWER((MAX(LAT_N) - MIN(LAT_N)),2) + POWER((MAX(LONG_W)-MIN(LONG_W)),2) ),4 ) FROM STATION

Weather Observation Station 18 | HackerRank Query the Manhattan Distance between two points, round or truncate to 4 decimal digits. www.hackerrank.com 문제 조건 Consider P1(a,b) and P2(c,d) to be two points on a 2D plane. happens to equal the minimum value in Northern Latitude (LAT_N in STATION). happens to equal the minimum value in Western Longitude (LONG_W in STATION). happens to equal the maximu..

New Companies | HackerRank Find total number of employees. www.hackerrank.com 문제 조건 Amber's conglomerate corporation just acquired some new companies. Each of the companies follows this hierarchy: Given the table schemas below, write a query to print the company_code, founder name, total number of lead managers, total number of senior managers, total number of managers, and total number of emplo..
Binary Tree Nodes | HackerRank Write a query to find the node type of BST ordered by the value of the node. www.hackerrank.com 문제 풀이 select n, (case when p is null then "Root" when n in (select p from BST) then "Inner" else "Leaf" end) from BST order by n
The PADS | HackerRank Query the name and abbreviated occupation for each person in OCCUPATIONS. www.hackerrank.com 문제 조건 1. Occupations 테이블에 있는 Name을 알파벳 순서로 정렬하여 출력하는데, Name 바로 끝에 각 직업의 첫 문자열을 괄호를 이용하여 추가하여 출력시켜라. 2. 각 직업에 속하는 Name을 카운트 시켜라. 1차 정렬기준은 [occupation_count]를 오름차순으로, 2차 정렬기준은 [occupation]의 알파벳 순서로 정렬해라. 문제 풀이 select concat(name, '(', left(occupation,1), ')') from occupations order by..
보호되어 있는 글입니다.