select a.* , (SELECT count(*)
FROM branch_expense_lines bl,
branch_expense be,
payment_indents pi,
payment_ind_branch_expenses pie,
payment_vhr_branch_expenses pve ,
payment_vouchers pv
WHERE be.BRANCH_EXPENSE_ID =bl.BRANCH_EXPENSE_ID
and pv.PAYMENT_VOUCHER_ID=pve.PAYMENT_VOUCHER_ID
AND bl.ACCOUNT_ID =pie.account_id
AND be.branch_id =pi.branch_id
AND pi.payment_indent_id =pie.payment_indent_id
AND pie.IND_BRANCH_EXPENSE_ID=pve.IND_BRANCH_EXPENSE_ID
and pv.PAYMENT_RECEIPT_DATE between trunc(to_date('01-04-2016','dd-mm-yyyy')) and bl.EXPENSE_DATE and bl.branch_expense_id=a.branch_expense_id) cnt
from branch_expense_lines a;
please help me...