일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SQL
- data_engineer
- dsf
- docker
- airflow webserver
- Pseudo Lab
- docker image
- 2023년 목표
- terraform
- Python
- Data Engineering
- docker container
- BOT
- Airflow
- datacamp
- 알고리즘
- Spark
- 프로그래머스
- leetcode
- 데이터 엔지니어
- MySQL
- airflow architecture
- 백준온라인저지
- 백준 온라인 저지
- telegram
- 빅데이터를 지탱하는 기술
- Dynamic Programming
- delete join
- hackerrank
- 그리디
- Today
- Total
목록SQL (34)
Lim Seunghyun Space
문제 : https://www.hackerrank.com/challenges/weather-observation-station-9 Weather Observation Station 9 | HackerRank Query an alphabetically ordered list of CITY names not starting with vowels. www.hackerrank.com 문제 해설 STATION 테이블에서 모음(a,e,i,o,u)로 시작하지 않은 CITY 이름을 조회 중복된 CITY는 제외 나의 풀이 (MySQL) SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP("^[^aeiouAEIOU].+$"); "^[^aeiouAEIOU].+$" : 모음가 아닌 문..
문제 : https://www.hackerrank.com/challenges/weather-observation-station-8/problem?isFullScreen=true Weather Observation Station 8 | HackerRank Query CITY names that start AND end with vowels. www.hackerrank.com 문제 해설 STATION 테이블에서 모음(a,e,i,o,u)로 시작하고 모음으로 끝나는 CITY의 이름 조회 중복된 CITY 이름은 제외 나의 풀이 (MySQL) SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP('^[aeiou].*[aeiou]$'); REGEXP : 문자열이 정규표현식과 일..
문제 : https://www.hackerrank.com/challenges/weather-observation-station-7/problem?isFullScreen=true Weather Observation Station 7 | HackerRank Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. www.hackerrank.com 문제 해설 STATION 테이블의 CITY 이름이 a,e,i,o,u로 끝나는 데이터만 조회 중복된 CITY는 제외 풀이 (MySQL) SELECT DISTINCT(CITY) FROM STATION WHERE CITY LIKE "%a" OR CITY LIKE "%e" OR CITY LI..
문제 : https://www.hackerrank.com/challenges/weather-observation-station-6/problem?isFullScreen=true Weather Observation Station 6 | HackerRank Query a list of CITY names beginning with vowels (a, e, i, o, u). www.hackerrank.com 문제 해설 STATION 테이블에서 CITY 값이 a,e,i,o,u 로 시작하는 데이터를 조회 조회하는 CITY는 중복제거 풀이 (MySQL) SELECT DISTINCT(CITY) FROM STATION WHERE CITY LIKE "a%" or CITY LIKE "e%" or CITY LIKE "i%"..
문제 : https://www.hackerrank.com/challenges/weather-observation-station-5/problem?isFullScreen=true Weather Observation Station 5 | HackerRank Write a query to print the shortest and longest length city name along with the length of the city names. www.hackerrank.com 문제 해설 CITY 이름이 가장 긴 것과 가장 작은 것을 조회 만일 이름의 길이가 같다면 알파벳 순으로 정렬 후 가장 먼저 오는 것을 조회 풀이 (MySQL) SELECT CITY, LENGTH(CITY) FROM STATION ORD..
문제 : https://www.hackerrank.com/challenges/weather-observation-station-4/problem?isFullScreen=true Weather Observation Station 4 | HackerRank Find the number of duplicate CITY names in STATION. www.hackerrank.com 문제 해설 전체 CITY의 수에서 중복을 제거한 CITY의 수의 차이를 조회 풀이 (MySQL) SELECT COUNT(CITY) - COUNT(DISTINCT(CITY)) FROM STATION
문제 : https://www.hackerrank.com/challenges/weather-observation-station-3/problem?isFullScreen=true Weather Observation Station 3 | HackerRank Query a list of unique CITY names with even ID numbers. www.hackerrank.com 문제 해설 STATION 테이블에서 ID 번호가 짝수인 NAME을 조회 결과값에서 중복인 데이터는 제외 풀이 (MySQL) SELECT DISTINCT CITY FROM STATION WHERE ID % 2 = 0;
문제 : https://www.hackerrank.com/challenges/weather-observation-station-1/problem?isFullScreen=true Weather Observation Station 1 | HackerRank Write a query to print the CITY and STATE for each attribute in the STATION table. www.hackerrank.com 문제 해설 CITY 테이블에서 CITY 와 STATE를 조회 풀이 (MySQL) SELECT CITY, STATE FROM STATION;
문제 : https://www.hackerrank.com/challenges/japanese-cities-name/problem?isFullScreen=true Japanese Cities' Names | HackerRank In this challenge, you will query a list of all the Japanese cities' names. www.hackerrank.com 문제 해설 CITY 테이블에서 Japanese cities 조회를 위해 COUNTRYCODE가 JPN 데이터를 조회 OUTPUT 조건은 NAME만 조회 풀이 (MySQL) SELECT NAME FROM CITY WHERE COUNTRYCODE = "JPN";
문제 : https://www.hackerrank.com/challenges/japanese-cities-attributes/problem?isFullScreen=true Japanese Cities' Attributes | HackerRank Query the attributes of all the cities in Japan. www.hackerrank.com 문제 해설 CITY 테이블에서 Japanese City만 찾기 위해 COUNTRYCODE가 JPN인 데이터를 조회 OUTPUT 조건은 모든 칼럼에 대해 조회 풀이 (MySQL) SELECT * FROM CITY WHERE COUNTRYCODE = "JPN";