일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- select
- Numpy
- que
- Word2vec
- kakao
- affine
- CBOW
- 딥러닝
- 프로그래머스
- FullyConnectedLayer
- Programmers
- stak
- algorithm
- Stack
- boj
- 파이썬
- skip-gram
- SQL
- backward
- DeepLearning
- MySQL
- sort
- Python
- Heap
- dl
- hash
- Sigmoid
- 자연어처리
- 신경망
- PPMI
Archives
- Today
- Total
혜온의 이것저것
[Programmers] 코딩테스트 연습 SQL - level3 본문
SELECT *
from places
where host_id in (
select host_id from places
group by host_id
having count(id)>=2)
order by id
없어진 기록 찾기
https://programmers.co.kr/learn/courses/30/lessons/59042
select animal_id, name
from animal_outs
where animal_id not in (select animal_id from animal_ins)
order by animal_id
있었는데요 없었습니다
https://programmers.co.kr/learn/courses/30/lessons/59043
select ins.animal_id, ins.name
from animal_ins ins, animal_outs outs
where ins.animal_id = outs.animal_id and ins.datetime > outs.datetime
order by ins.datetime
오랜 기간 보호한 동물(1)
https://programmers.co.kr/learn/courses/30/lessons/59044
select name, datetime
from animal_ins
where animal_id not in (select animal_id from animal_outs)
order by datetime
limit 3
헤비 유저가 소유한 장소
https://programmers.co.kr/learn/courses/30/lessons/77487
SELECT *
from places
where host_id in (
select host_id from places
group by host_id
having count(id)>=2)
order by id
오랜 기간 보호한 동물(2)
https://programmers.co.kr/learn/courses/30/lessons/59411
select outs.animal_id, outs.name
from animal_outs outs, animal_ins ins
where outs.animal_id = ins.animal_id
order by datediff(ins.datetime,outs.datetime)
limit 2
'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 - level2 (0) | 2022.03.22 |
[Programmers] 코딩테스트 연습 SQL - level1 (0) | 2022.03.17 |
Comments