1: 2: 3: 4: 5: 6: 7: 8:
select * From ( Core_deposits inner join dda on dda.loanumber = core_deposits.loanumber) inner join sav on sav.loanumber = coredeposits.loanumber inner join combined on combined.loanumber = coredeposits.loanumber Where combined.account_type <> "sav"