Last active
December 27, 2019 13:36
-
-
Save javrasya/6885ea1e78c6f995c7e42cc44bfeb5c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
user_id, | |
LAST_VALUE(location)over w, | |
event_time | |
from my_users | |
window as ( | |
user_id by category | |
order by event_time | |
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment