select sum(nvl(b.bill_amount, 0)) as Bill, sum(nvl(b.payment_amount, 0)) as Pay,
(SELECT count(c.bill_amount) from bills c where :P2_account_id = c.account_id) as Count
from bills b
where b.account_id = :P2_account_id
AND b.bill_date between (SYSDATE - 91) and (SYSDATE - 61)
or
b.account_id = :P2_account_id
aND b.payment_date between (SYSDATE - 91) and (SYSDATE - 61)
Can anyone tell me why I am getting this error? Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing