So I have a series of Amortization schedules, and I'd like to run a query to return the balances for the month of May on each schedule
My query right now, looks something like this
select ace.date, ace.balance, aacs.date, aacs.balance,
axl.date, axl.balance, la.date, la.balance,
mrh.date, mrh.balance
from
(select *
from [Entity1]
where MONTH (date) = 05 AND YEAR (date) = 2017) as ACE
full join
(select *
from [Entity2]
where MONTH (date) = 05 AND YEAR (date) = 2017) as AACS
on ACE.GLCredited = AACS.GLCredited
full join
(select *
from [Entity3]
where MONTH (date) = 05 AND YEAR (date) = 2017) as AXL
on AXL.GLCredited = AACS.GLCredited
full join
(select *
from [Entity4]
where MONTH (date) = 05 AND YEAR (date) = 2017) as LA
on LA.GLCredited = AXL.GLCredited
full join
(select *
from [Entity5]
where MONTH (date) = 05 AND YEAR (date) = 2017) as MRH
on MRH.GLCredited = LA.GLCredited
this is what it returns
date | balance | date | balance | date | balance | date | balance | date | balance |
------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
NULL | NULL | 2017-05-31 | 563275.00 | NULL | NULL | NULL | NULL | NULL | NULL |
------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
2017-05-31 | 896337.00 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
NULL | NULL | NULL | NULL | 2017-05-31 | 3746167.00 | NULL | NULL | NULL | NULL |
------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
NULL | NULL | NULL | NULL | NULL | NULL | 2017-05-01 | 474774.00 | NULL | NULL |
------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | 2017-05-31 | 127987.00 |
Is there any way that you know of, that will return the data without the null values?