TYPE=VIEW
query=select `a`.`lf_no` AS `lf_no`,`a`.`Acc_no` AS `acc_no`,`a`.`Date_open` AS `date_open`,`a`.`Maturity_Date` AS `Maturity_Date`,`a`.`Maturity_Amount` AS `Maturity_Amount`,`a`.`Name` AS `name`,`ab`.`bal` AS `Principle_Amount`,`a`.`interest` AS `interest` from `co-operativebank`.`account` `a` join `co-operativebank`.`account_balance` `ab` where ((`a`.`Acc_no` = `ab`.`acc_no`) and (`a`.`Date_open` <= \'2025-09-30\') and (`a`.`Acc_Type` = \'fd\') and (`ab`.`bal` <> 0)) union all select `a`.`lf_no` AS `lf_no`,`a`.`Acc_no` AS `acc_no`,max(`r`.`open_date`) AS `date_open`,max(`a`.`Maturity_Date`) AS `max(a.Maturity_Date)`,`a`.`Maturity_Amount` AS `Maturity_Amount`,`a`.`Name` AS `name`,`ab`.`bal` AS `Principle_Amount`,`a`.`interest` AS `interest` from `co-operativebank`.`account` `a` join `co-operativebank`.`account_balance` `ab` join `co-operativebank`.`fd_m_int_pay` `r` where ((`r`.`acc_no` = `a`.`Acc_no`) and (`r`.`acc_no` = `ab`.`acc_no`) and (`a`.`Acc_no` = `ab`.`acc_no`) and (`a`.`Date_open` >= \'2025-09-30\') and (`r`.`open_date` <= \'2025-09-30\') and (`a`.`Acc_Type` = \'fd\')) group by `a`.`Acc_no`
md5=6945d21a8708ff3e076e5aa7610164ab
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2026-01-02 04:10:07
create-version=1
source=select a.lf_no,a.acc_no,a.date_open,a.Maturity_Date,a.Maturity_Amount,a.name,ab.bal Principle_Amount,a.interest from account a,account_balance ab where a.acc_no=ab.acc_no and a.date_open<=\'2025-09-30\' and a.acc_type=\'fd\' and ab.bal<>0   union all SELECT  a.lf_no,a.acc_no, max(r.open_date) as date_open, max(a.Maturity_Date),a.Maturity_Amount, a.name, ab.bal Principle_Amount, a.interest FROM account a, account_balance ab,fd_m_int_pay r WHERE (r.acc_no = a.acc_no) And (r.acc_no = ab.acc_no)  And a.acc_no = ab.acc_no AND (a.date_open >=  \'2025-09-30\' and r.open_date<=\'2025-09-30\') AND a.acc_type =\'fd\'  group by acc_no
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `a`.`lf_no` AS `lf_no`,`a`.`Acc_no` AS `acc_no`,`a`.`Date_open` AS `date_open`,`a`.`Maturity_Date` AS `Maturity_Date`,`a`.`Maturity_Amount` AS `Maturity_Amount`,`a`.`Name` AS `name`,`ab`.`bal` AS `Principle_Amount`,`a`.`interest` AS `interest` from `co-operativebank`.`account` `a` join `co-operativebank`.`account_balance` `ab` where ((`a`.`Acc_no` = `ab`.`acc_no`) and (`a`.`Date_open` <= \'2025-09-30\') and (`a`.`Acc_Type` = \'fd\') and (`ab`.`bal` <> 0)) union all select `a`.`lf_no` AS `lf_no`,`a`.`Acc_no` AS `acc_no`,max(`r`.`open_date`) AS `date_open`,max(`a`.`Maturity_Date`) AS `max(a.Maturity_Date)`,`a`.`Maturity_Amount` AS `Maturity_Amount`,`a`.`Name` AS `name`,`ab`.`bal` AS `Principle_Amount`,`a`.`interest` AS `interest` from `co-operativebank`.`account` `a` join `co-operativebank`.`account_balance` `ab` join `co-operativebank`.`fd_m_int_pay` `r` where ((`r`.`acc_no` = `a`.`Acc_no`) and (`r`.`acc_no` = `ab`.`acc_no`) and (`a`.`Acc_no` = `ab`.`acc_no`) and (`a`.`Date_open` >= \'2025-09-30\') and (`r`.`open_date` <= \'2025-09-30\') and (`a`.`Acc_Type` = \'fd\')) group by `a`.`Acc_no`
