some progress
This commit is contained in:
parent
f911912b45
commit
606eed9754
4 changed files with 35 additions and 7 deletions
|
|
@ -1,9 +1,9 @@
|
|||
with
|
||||
date_master as (select * from {{ ref("int_dates") }}),
|
||||
fee_txns as (select * from {{ ref("int_core__guest_fee_txns") }})
|
||||
select date_master.date_day, coalesce(sum(fee_txns.amount), 0)
|
||||
select date_master.date_day as date, coalesce(sum(fee_txns.amount), 0)
|
||||
from date_master
|
||||
left join fee_txns on date_master.date_day = fee_txns.paymenent_due_at_utc
|
||||
left join fee_txns on date_master.date_day = fee_txns.payment_due_at_utc
|
||||
where date_day between '2022-01-01' and '2024-12-31'
|
||||
group by date_master.date_day
|
||||
order by 2 desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue