refactor to remove unnecessary bloat

This commit is contained in:
Pablo Martin 2024-03-12 10:40:53 +01:00
parent 6d734cc398
commit 8b2dca174f

View file

@ -1,11 +1,8 @@
with
int_core__verification_payments as (
select * from {{ ref("int_core__verification_payments") }}
),
monster_payment_join as (
select vp.*
from int_core__verification_payments vp
where vp.verification_payment_type = 'Fee' and vp.payment_status = 'Paid'
)
select *
from monster_payment_join
select vp.*
from int_core__verification_payments vp
where vp.verification_payment_type = 'Fee' and vp.payment_status = 'Paid'