Select spriden_id,
        spriden_last_name,
        tbraccd_detail_code,
        tbraccd_tran_number,
        tbraccd_balance,
        tbraccd_term_code
from spriden, tbraccd
  where spriden_pidm = tbraccd_pidm
  and tbraccd_detail_code in ('&Detail_Code_1', '&Detail_Code_2')
  and TBRACCD.TBRACCD_BALANCE <> '0'
/