Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions models/marts/agg_monthly_loans.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ combined as (
select
coalesce(orig.month_start, pay.month_start) as month,
orig.loan_type_name,
loans.customer_id,
coalesce(orig.loans_originated, 0) as new_loans,
coalesce(orig.total_amount_originated, 0) as amount_originated,
coalesce(orig.avg_loan_amount, 0) as avg_loan_size,
Expand All @@ -45,8 +44,6 @@ combined as (
from monthly_originations orig
full outer join monthly_payments pay
on orig.month_start = pay.month_start
left join loans
on orig.loan_type_name = loans.loan_type_name
)

select * from combined
Expand Down