TYPE=VIEW
query=select `svm`.`date` AS `Date`,`v`.`Acc_no` AS `Acc_no`,concat(`ap`.`fname`,\' \',`ap`.`mname`,\' \',`ap`.`lname`) AS `Name`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - `svm`.`int_amt`) AS `Amt`,`svm`.`int_amt` AS `Interest_Amt`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `Final_Amt` from ((`co-operativebank-kutubpur`.`voucher` `v` join `co-operativebank-kutubpur`.`savingsintrst` `svm`) join `co-operativebank-kutubpur`.`j_a` `ap`) where ((`svm`.`acc_no` = `v`.`Acc_no`) and (`ap`.`Acc_No` = `v`.`Acc_no`) and (`svm`.`date` >= \'2015-04-01\') and (`svm`.`date` <= \'2016-03-31\') and (`v`.`date` <= `svm`.`date`)) group by `v`.`Acc_no`
md5=1255bd9b58f671fbfa9fc21c82372bbe
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2021-08-20 14:30:48
create-version=1
source=select  `svm`.`date`  AS  `Date` ,\n `v`.`Acc_no`  AS  `Acc_no` ,\nconcat(  `ap`.`fname` ,  \' \',  `ap`.`mname` ,  \' \',  `ap`.`lname`  )  AS  `Name` ,\n( ( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) -  `svm`.`int_amt`  ) AS  `Amt` ,\n `svm`.`int_amt`  AS  `Interest_Amt` ,\n( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) AS  `Final_Amt`  from ( (  `co-operativebank-kutubpur`.`voucher`  `v`  join  `co-operativebank-kutubpur`.`savingsintrst`  `svm`  ) join  `co-operativebank-kutubpur`.`j_a`  `ap`  ) where ( (  `svm`.`acc_no`  =  `v`.`Acc_no`  ) and (  `ap`.`Acc_No`  =  `v`.`Acc_no`  ) and (  `svm`.`date`  >=  \'2015-04-01\' ) and (  `svm`.`date`  <=  \'2016-03-31\' ) and (  `v`.`date`  <=  `svm`.`date`  ) ) group  by  `v`.`Acc_no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `svm`.`date` AS `Date`,`v`.`Acc_no` AS `Acc_no`,concat(`ap`.`fname`,\' \',`ap`.`mname`,\' \',`ap`.`lname`) AS `Name`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - `svm`.`int_amt`) AS `Amt`,`svm`.`int_amt` AS `Interest_Amt`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `Final_Amt` from ((`co-operativebank-kutubpur`.`voucher` `v` join `co-operativebank-kutubpur`.`savingsintrst` `svm`) join `co-operativebank-kutubpur`.`j_a` `ap`) where ((`svm`.`acc_no` = `v`.`Acc_no`) and (`ap`.`Acc_No` = `v`.`Acc_no`) and (`svm`.`date` >= \'2015-04-01\') and (`svm`.`date` <= \'2016-03-31\') and (`v`.`date` <= `svm`.`date`)) group by `v`.`Acc_no`
