SELECT DISTINCT bank_setid , bank_cd , bank_acct_key , schedule_id FROM PS_PAYMENT_TBL WHERE schedule_id <> ' ' AND NOT EXISTS ( SELECT 'x' FROM ps_gfap_sps_sum WHERE bank_setid = PS_PAYMENT_TBL.bank_setid AND bank_cd = PS_PAYMENT_TBL.bank_cd AND bank_acct_key = PS_PAYMENT_TBL.bank_acct_key AND schedule_id = PS_PAYMENT_TBL.schedule_id) AND NOT EXISTS ( SELECT 'x' FROM ps_gfap_ecs_sum WHERE bank_setid = PS_PAYMENT_TBL.bank_setid AND bank_cd = PS_PAYMENT_TBL.bank_cd AND bank_acct_key = PS_PAYMENT_TBL.bank_acct_key AND schedule_id = PS_PAYMENT_TBL.schedule_id)
|