SELECT acct,
acct_unit1,
trans_date,
REF,
voucher,
from_id,
ref_type,
dom_amount
FROM ledger
WHERE (trans_date BETWEEN '01/01/2009' AND '12/31/2009')
AND (((acct = '60500') AND (acct_unit1 BETWEEN '3000' AND '3110'))
OR ((acct >= '61000') AND (acct_unit1 BETWEEN '3000' AND '3110'))
OR ((acct >= '61000') AND (acct_unit1 BETWEEN '4000' AND '4100')))
|