Last active
December 27, 2019 13:34
-
-
Save javrasya/5bfc3a45f6388a1a388874a14e8e1321 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 | |
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment