SET : 새로운 변수를 할당할 수 있다. 여기서 만들어진 변수는 새롭게 만들어진 변수이기 때문에 @를 붙여서 사용한다. REPEAT : 문자열을 반복하여 출력하는 함수이다. string: 반복될 문자열 count: 반복 횟수 FROM INFORMATION_SCHEMA.TABLES : 데이터베이스 테이블을 가져온다. mysql 서버 내에 ...
SELECT 문 안에 CASE문을 넣어주면 된다. 조건문 논리는 일반 언어와 같다. → 삼각형이 아닌 경우를 먼저 제외해 주어야 한다.(그래야 다른 조건에 걸림) 삼각형이 아닌 조건은 두 변의 합이 한 변보다 작거나 같을 때 이다.
https://www.hackerrank.com/challenges/the-pads/problem?isFullScreen=true&h_r=next-challenge&h_v=zen
문제에서 요구하는 바에 의하면, 출력값이 다음과 같이 나와야 한다. 위와 같이 정렬하기 위해서는 직업별 이름 순으로 번호를 매겨 주어야 한다. 그렇기에 서브쿼리에서 row_number() OVER (PARTITION BY Occupation ORDER BY NAME) 를 이용하여 직업별로 번호를 매겨 주고, 순서를 정렬해준다. Mysql MySQL...
논리 P가 NULL → Root N이 P에 NOT IN → Leaf 나머지 경우 → Inner IN절 안에서 NULL 조건을 잘 살펴주어야 한다.
Company Lead_Manager Senior_Manager Manager  and p2 at (x2, y2), it is |x1 - x2| + |y1 - y2|.
Euclidean Distance definition https://en.wikipedia.org/wiki/Euclidean_distance
Median = 중앙값
You did such a great job helping Julia with her last coding contest challenge that she wants you to work on this one, too! The total score of a hacker is the sum of their maximum scores for all of th...