본문 바로가기
SQL

leetcode 1890. The Latest Login in 2020

by 무적김두칠 2022. 3. 30.

1
2
3
4
5
6
7
# Write your MySQL query statement below
select user_id, max(time_stamp) as last_stamp
from Logins
where 1=1
and time_stamp>='2020-01-01'
and time_stamp<'2021-01-01'
group by user_id
cs
반응형

댓글