Last active
December 27, 2019 13:33
-
-
Save javrasya/0d1230c48e2d72dddb076d39c20eaad5 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment