Created
November 24, 2022 15:11
-
-
Save mshakhomirov/e4f11721eb5a3182150df08f25b70d64 to your computer and use it in GitHub Desktop.
This file contains 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 | |
date | |
,user_id | |
,total_cost | |
,sum(total_cost) over (partition by date,user_id) as revenue_per_day | |
from production.payment_transaction | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment