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-milani`.`voucher` `v` join `co-operativebank-milani`.`savingsintrst` `svm`) join `co-operativebank-milani`.`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=38aceb11767de113274fb23e04141273
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2021-10-21 04:25:08
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-milani`.`voucher`  `v`  join  `co-operativebank-milani`.`savingsintrst`  `svm`  ) join  `co-operativebank-milani`.`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-milani`.`voucher` `v` join `co-operativebank-milani`.`savingsintrst` `svm`) join `co-operativebank-milani`.`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`
