TYPE=VIEW
query=select `v`.`shcode` AS `code`,`v`.`sub_head` AS `sub_head`,`q`.`name` AS `NAME`,`mc`.`date_open` AS `Opeing_Date`,`mc`.`acc_no` AS `acc_no`,`mc`.`acc_type` AS `acc_type`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal`,concat(`mc`.`Duration`,\' \',`mc`.`Duration_Type`) AS `Duration`,`mc`.`maturity_date` AS `maturity_date`,timestampdiff(DAY,`mc`.`date_open`,\'2019-03-31\') AS `DAYS`,`mc`.`fd_sv_acc_no` AS `SBACC` from ((`co-operativebank-mitrachak`.`mstr_bnk_acc` `mc` join `co-operativebank-mitrachak`.`headvoucher` `v`) join `co-operativebank-mitrachak`.`quick_name` `q`) where ((`v`.`acc_no` = `q`.`acc_no`) and (`q`.`acc_no` = `mc`.`acc_no`) and (`v`.`acc_no` = `mc`.`acc_no`) and (`v`.`date` <= \'2019-03-31\')) group by `mc`.`acc_no`
md5=75115523a21e915dd29b7c8ae216fec7
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2019-06-18 12:38:57
create-version=1
source=select v.shcode AS code,v.sub_head AS sub_head,q.name AS NAME,mc.date_open AS Opeing_Date,mc.acc_no AS acc_no,mc.acc_type AS acc_type,(sum(v.cr) - sum(v.dr)) AS bal,concat(mc.Duration,\' \',mc.Duration_Type) AS Duration,mc.maturity_date AS maturity_date,timestampdiff(DAY,mc.date_open,\'2019-03-31\') AS DAYS,FD_SV_ACC_NO AS SBACC from (((mstr_bnk_acc mc join headvoucher v) ) join quick_name q) where ((v.Acc_no = q.acc_no) and (q.acc_no = mc.acc_no)  and (v.Acc_no = mc.acc_no) and (v.date <= \'2019-03-31\')) group by mc.acc_no
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v`.`shcode` AS `code`,`v`.`sub_head` AS `sub_head`,`q`.`name` AS `NAME`,`mc`.`date_open` AS `Opeing_Date`,`mc`.`acc_no` AS `acc_no`,`mc`.`acc_type` AS `acc_type`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal`,concat(`mc`.`Duration`,\' \',`mc`.`Duration_Type`) AS `Duration`,`mc`.`maturity_date` AS `maturity_date`,timestampdiff(DAY,`mc`.`date_open`,\'2019-03-31\') AS `DAYS`,`mc`.`fd_sv_acc_no` AS `SBACC` from ((`co-operativebank-mitrachak`.`mstr_bnk_acc` `mc` join `co-operativebank-mitrachak`.`headvoucher` `v`) join `co-operativebank-mitrachak`.`quick_name` `q`) where ((`v`.`acc_no` = `q`.`acc_no`) and (`q`.`acc_no` = `mc`.`acc_no`) and (`v`.`acc_no` = `mc`.`acc_no`) and (`v`.`date` <= \'2019-03-31\')) group by `mc`.`acc_no`
