TYPE=VIEW
query=select \'2016-07-02\' AS `Date`,`svm`.`code` AS `Acc_no`,`svm`.`acc_no` AS `sb_acc`,concat(`a`.`initial`,\' \',`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `Name`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `Final_Amt`,round((((sum(`v`.`cr`) - sum(`v`.`dr`)) * \'12\') / 100),0) AS `dividend` from ((`co-operativebank-244`.`voucher` `v` join `co-operativebank-244`.`shares` `svm`) join `co-operativebank-244`.`j_a` `a`) where ((`svm`.`code` = `v`.`Acc_no`) and (`v`.`date` >= \'2016-07-02\') and (`v`.`date` <= \'2016-07-02\') and (`svm`.`acc_no` = `a`.`Acc_No`)) group by `v`.`Acc_no`
md5=79479f5ec2cd059da2f6d3f0287f79e1
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=1
with_check_option=0
timestamp=2025-11-19 04:30:20
create-version=1
source=select  \'2016-07-02\' AS  `Date` ,\n `svm`.`code`  AS  `Acc_no` ,\n `svm`.`acc_no`  AS  `sb_acc` ,\nconcat(  `a`.`initial` ,  \' \',  `a`.`fname` ,  \' \',  `a`.`mname` ,  \' \',  `a`.`lname`  )  AS  `Name` ,\n( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) AS  `Final_Amt` ,\nround( ( ( ( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  )  *  \'12\' ) /100 ),\n0 ) AS  `dividend`  from ( (  `co-operativebank-244`.`voucher`  `v`  join  `co-operativebank-244`.`shares`  `svm`  ) join  `co-operativebank-244`.`j_a`  `a`  ) where ( (  `svm`.`code`  =  `v`.`Acc_no`  ) and (  `v`.`date`  >=  \'2016-07-02\' ) and (  `v`.`date`  <=  \'2016-07-02\' ) and (  `svm`.`acc_no`  =  `a`.`Acc_No`  ) ) group  by  `v`.`Acc_no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select \'2016-07-02\' AS `Date`,`svm`.`code` AS `Acc_no`,`svm`.`acc_no` AS `sb_acc`,concat(`a`.`initial`,\' \',`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `Name`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `Final_Amt`,round((((sum(`v`.`cr`) - sum(`v`.`dr`)) * \'12\') / 100),0) AS `dividend` from ((`co-operativebank-244`.`voucher` `v` join `co-operativebank-244`.`shares` `svm`) join `co-operativebank-244`.`j_a` `a`) where ((`svm`.`code` = `v`.`Acc_no`) and (`v`.`date` >= \'2016-07-02\') and (`v`.`date` <= \'2016-07-02\') and (`svm`.`acc_no` = `a`.`Acc_No`)) group by `v`.`Acc_no`
