일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Sigmoid
- dl
- backward
- SQL
- Programmers
- 파이썬
- stak
- algorithm
- hash
- Python
- FullyConnectedLayer
- sort
- MySQL
- skip-gram
- Word2vec
- Heap
- Numpy
- que
- 신경망
- CBOW
- Stack
- kakao
- 자연어처리
- DeepLearning
- affine
- 딥러닝
- PPMI
- select
- boj
- 프로그래머스
Archives
- Today
- Total
혜온의 이것저것
[Programmers] 코딩테스트 연습 SQL - level2 본문
고양이와 개는 몇 마리 있을까
https://programmers.co.kr/learn/courses/30/lessons/59040
select animal_type, count(animal_id) count
from animal_ins
group by animal_type
order by animal_type
루시와 엘라 찾기
https://programmers.co.kr/learn/courses/30/lessons/59046
select animal_id, name, sex_upon_intake
from animal_ins
where name in ("Lucy", "Ella", "Pickle", "Sabrina", "Mitty")
최솟값 구하기
https://programmers.co.kr/learn/courses/30/lessons/59038
select min(datetime) 시간
from animal_ins
동명 동물 수 찾기
https://programmers.co.kr/learn/courses/30/lessons/59041
select name, count(name) count
from animal_ins
group by name
having count >=2
order by name
이름에 el이 들어가는 동물 찾기
https://programmers.co.kr/learn/courses/30/lessons/59047
select animal_id, name
from animal_ins
where animal_type = "Dog" and name like "%el%"
order by name
동물 수 구하기
https://programmers.co.kr/learn/courses/30/lessons/59406
select count(animal_id) count
from animal_ins
입양 시각 구하기(1)
https://programmers.co.kr/learn/courses/30/lessons/59412
select hour(datetime) hour, count(datetime) count
from animal_outs
group by hour(datetime)
having hour >=9 and hour <=19
order by hour
NULL 처리하기
https://programmers.co.kr/learn/courses/30/lessons/59410
select animal_type, ifnull(name,"No name") name, sex_upon_intake
from animal_ins
order by animal_id
중성화 여부 판단하기
https://programmers.co.kr/learn/courses/30/lessons/59409
select animal_id, name,
case when sex_upon_intake like '%Neutered%' or sex_upon_intake like '%Spayed%'
then 'O' else 'X' end 중성화
from animal_ins
order by animal_id
중복 제거하기
https://programmers.co.kr/learn/courses/30/lessons/59408
select count(distinct(name)) count
from animal_ins
DATETIME에서 DATE로 형 변환
https://programmers.co.kr/learn/courses/30/lessons/59414
select animal_id, name, date_format(datetime,'%Y-%m-%d') 날짜
from animal_ins
order by animal_id
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] Revising the Select Query II (MySQL) (0) | 2022.08.03 |
---|---|
[HackerRank] Revising the Select Query I (MySQL) (0) | 2022.08.03 |
[Programmers] 코딩테스트 연습 SQL - level4 (0) | 2022.06.29 |
[Programmers] 코딩테스트 연습 SQL - level3 (0) | 2022.04.13 |
[Programmers] 코딩테스트 연습 SQL - level1 (0) | 2022.03.17 |
Comments