일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- medium
- 릿코드
- 슬라이딩윈도우
- dfs
- 리트코드
- sql코테
- two-pointer
- GenerativeAI
- LeetCode
- 자연어처리
- tree
- Stack
- codeup
- 알고리즘
- 투포인터
- GenAI
- 코드업
- nlp
- Python3
- 생성형AI
- 파이썬기초100제
- slidingwindow
- SQL
- heap
- gcp
- Python
- stratascratch
- 파이썬알고리즘
- 니트코드
- 파이썬
Archives
- Today
- Total
Tech for good
[Stratascratch/SQL] Daily Interactions By Users Count 본문
with cte as (
select day, user1
from facebook_user_interactions
union all
select day, user2 as user1
from facebook_user_interactions)
select day, count(*)/2, count(distinct user1)
from cte
group by day;
'IT > Data Science' 카테고리의 다른 글
[Stratascratch/SQL] User Feature Completion (0) | 2025.02.26 |
---|---|
[Stratascratch/SQL] Find the total number of approved friendship requests in January and February (0) | 2025.02.26 |
[Stratascratch/SQL] Successfully Sent Messages (0) | 2025.02.26 |
[파이썬 정규표현식] re.sub() (0) | 2021.10.29 |
.iteritems() 함수 (0) | 2021.10.29 |