Weather Observation Station 20 | HackerRank Query the median of Northern Latitudes in STATION and round to 4 decimal places. www.hackerrank.com LAT_N 값 중에서 중앙값(Median)을 찾는 문제입니다. 문제) A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round your answer to 4 decimal places. 이번 문제는 WINDOW ..
New Companies | HackerRank Find total number of employees. www.hackerrank.com 이번 문제는 JOIN과 계산함수를 활용하는 문제입니다. 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, ..
Binary Tree Nodes | HackerRank Write a query to find the node type of BST ordered by the value of the node. www.hackerrank.com 이번 문제는 이진 트리와 관련된 문제를 푸는 쿼리입니다. 문제) You are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N. Write a query to find the node type of Binary Tree ordered by the value of the node. Output o..
Weather Observation Station 14 | HackerRank Query the greatest value of the Northern Latitudes from STATION that are under 137.2345 and truncated to 4 decimal places. www.hackerrank.com 137.2345 보다 낮은 북위도 중 가장 큰 값을 찾는 쿼리를 출력하는 문제입니다. 문제) Query the greatest value of the Northern Latitudes (LAT_N) from STATION that is less than 137.2345. Truncate your answer to decimal places. 그리고 소수점을 4자리 밑으로는 제외..
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 이번 문제는 그 동안 급여를 가장 많이 받은 급여의 금액과 몇 명이 받았는지 출력하는 문제입니다. 총 급여는 salary x month로 정의하고 (각 직원의 급여와 재직 개월 수) 총 급여를 구합니다. 문제) We define an employee's total earnings to be their monthly salary x months worked, and the maximum total..
The Blunder | HackerRank Query the amount of error in Sam's result, rounded up to the next integer. www.hackerrank.com 점점 문제가 길어지고 영어 공부도 같이 하는 것 같습니다 :) 이번 문제는 Samatha라는 직원이 전 직원의 평균 급여를 계산하고 있는데 숫자 '0'키가 고장났다는 상황을 가정하여 실제 평균급여와 '0'을 누르지 못했을 때의 평균급여 금액의 차이를 구하는 문제입니다. 문제) Samantha was tasked with calculating the average monthly salaries for all employees in the EMPLOYEES table, but did not real..