일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- medium
- two-pointer
- dfs
- codeup
- stratascratch
- Python3
- 투포인터
- gcp
- Python
- slidingwindow
- 리트코드
- GenerativeAI
- 파이썬
- 니트코드
- 코드업
- 파이썬알고리즘
- 구글퀵랩
- 파이썬기초100제
- nlp
- Microsoft
- 알고리즘
- sql코테
- LeetCode
- 릿코드
- 생성형AI
- 슬라이딩윈도우
- 자연어처리
- SQL
- Blazor
- GenAI
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 |