SELECT VOUCHER_NO,DATE FROM TRANSECT WHERE TRANSECT.ACCOUNT1 NOT IN (SELECT DISTINCT ACCOUNT_NO FROM LEDGER WHERE NOT GROUP_FLG)
SELECT VOUCHER_NO,DATE FROM TRANSECT WHERE TRANSECT.ACCOUNT2 NOT IN (SELECT DISTINCT ACCOUNT_NO FROM LEDGER WHERE NOT GROUP_FLG)