Untitled
unknown
plain_text
2 years ago
128 B
5
Indexable
SELECT * , RANK() OVER (partition by user_id ORDER BY CAST(event_time as date) DESC) from tools_shop.events ORDER by user_id
Editor is loading...
SELECT * , RANK() OVER (partition by user_id ORDER BY CAST(event_time as date) DESC) from tools_shop.events ORDER by user_id