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-221`.`voucher` `v` join `co-operativebank-221`.`savingsintrst` `svm`) join `co-operativebank-221`.`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=c0f2b480edd1280a7bc968f19819093f
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2023-08-31 12:31:49
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-221`.`voucher`  `v`  join  `co-operativebank-221`.`savingsintrst`  `svm`  ) join  `co-operativebank-221`.`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-221`.`voucher` `v` join `co-operativebank-221`.`savingsintrst` `svm`) join `co-operativebank-221`.`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`
