Dagon,
We have a working script.
I addded your change to the B.Bill_Date and B.Enc_Date
and I changed the last 4 lines to read...........
HAVING SUM ( DECODE(substr( TRANS_CD,1,1)'U',G.Credit_Amount, 0)) !=0) G
Where B.Bill_Date Between Trunc(Sysdate) -232 And Trunc(Sysdate) -120
And G.Cntrl_No...