MySQL
- 1 ответ
- 0 вопросов
1
Вклад в тег
select *
from (select id,
usr,
action,
datetime,
row_number () over (partition by action order by datetime desc) rn
from test_tbl)
where rn = 1
order by datetime;