일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- meidum
- Hackerrank
- lv.4
- MySQL
- 직장인자기계발
- HACKER_RANK
- 패스트캠퍼스후기
- 어려웠음
- 파이썬을활용한시계열데이터분석
- SQL
- Hard
- join
- group by
- 패캠챌린지
- 패스트캠퍼스
- row_number
- 프로그래머스
- 파이썬을활용한시계열데이터분석AtoZ올인원패키지Online
- LeetCode
- solvesql
- 다시풀어보기
- RANK
- 해커랭크
- easy
- SELF-JOIN
- 프리미엄
- recursive
- 직장인인강
- 시계열데이터분석
- medium
- Today
- Total
목록SQL/HACKER_RANK (27)
~고군분투 인생살이~
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..
보호되어 있는 글입니다.
Revising the Select Query II | HackerRank Query the city names for all American cities with populations larger than 120,000. www.hackerrank.com 문제 조건 Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA. 문제 풀이 select name from city where countrycode = 'USA' and population > 120000
Revising the Select Query I | HackerRank Query the data for all American cities with populations larger than 100,000. www.hackerrank.com 문제 조건 Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA. The CITY table is described as follows: 문제 풀이 select * from city where population > 100000 and countrycode = 'USA'

문제 해설 문제 해설 Samantha는 코딩 챌린지와 컨테스트를 통해 여러 대학의 많은 후보자를 인터뷰합니다. contest_id, hacker_id, name과 각 컨테스트 별 total_submissions, total_accepted_submissions, total_views, total_unique_views의 합계를 출력합니다. 4개의 합계가 모두 0이면 해당 컨테스트를 결과에서 제외합니다. 참고: 특정 컨테스트는 한 개 이상의 대학에서 후보자를 선별하는데 활용될 수 있지만, 각 대학은 하나의 컨테스트만 개최합니다. 테이블 정보 Contests Colleges Challenges View_Stats Submission_Stats 풀이 [그림] 출력 대상 컬럼(점선 박스)과 Join 구조(화살표..
문제 설명 해당 문제는 다음과 같은 2가지 결과를 출력하기를 원합니다. 1. Occupations 테이블에 있는 Name을 알파벳 순서로 정렬하여 출력하는데, Name 바로 끝에 각 직업의 첫 문자열을 괄호를 이용하여 추가하여 출력시켜라. 2. 각 직업에 속하는 Name을 카운트 시켜라. 1차 정렬기준은 [occupation_count]를 오름차순으로, 2차 정렬기준은 [occupation]의 알파벳 순서로 정렬해라. 또한, 2번에서 요구하는 출력 형태는 다음과 같습니다. Tre are a total of [occupation_count] [occpuation]s. 최종적인 출력 예시는 아래와 같습니다. Ashely(P) Christeen(P) Jane(A) Jenny(D) Julia(A) Ketty(P..

1. 문제 설명 Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_W is the western longitude. 2. 문제 풀이 3. 결과 SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^AEIOU].*'

1. 문제 설명 Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates. Input Format The STATION table is described as follows: where LAT_N is the northern latitude and LONG_W is the western longitude. 2. 문제 풀이 3. 결과 SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP('^[AEIOU]') AND CITY REGEX..