You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from bdesime.dbo.delinquency_snapshot (nolock) where [first principal balance] > 0 AND convert(date,[loan date]) between @startDate and @endDate group by [loan date]
UNION
select [table] = @server + ' - bde_data.dbo.portfolio_summary', loanDate = max([loandate]), UPB = sum(UPB), loans = sum(active) + sum(reo) from bde_data.dbo.portfolio_summary (nolock) where [loandate] between @startDate and @endDate group by loandate
UNION
select [table] = @server + ' - bde_data.dbo.portfolio_summary_investor',loanDate = max([loandate]), UPB = sum(UPB), loans = sum(active) + sum(reo) from bde_data.dbo.portfolio_summary_investor (nolock) where [loandate] between @startDate and @endDate group by loandate
UNION
select [table] = @server + ' - bdesime.dbo.portfolio_summary_type',loanDate = max([loandate]), UPB = sum(UPB), loans = sum(active) + sum(reo) from bdesime.dbo.portfolio_summary_type (nolock) where [loandate] between @startDate and @endDate group by loandate