Thanks a lot. It did not give error. I need to run the query on following data
Table BK
BkRef,BkDT,BkAmt
ZAFD-00257,20090101,-500.000
ZAFD-00258,20090101,-500.000
ZAFD-00259,20090101,-500.000
ZAFD-00260,20090101,-500.000
ZAFD-00261,20090101,-500.000
ZAFD-00262,20090101,-500.000
Table CB...