TYPE=VIEW
query=select `v1`.`no` AS `no`,`v1`.`Acc_no` AS `acc_no`,concat(`a`.`name`,\' \',convert(if((`v1`.`vch_type` = \'Opnn Bal\'),\'[NEW]\',\'\') using latin1)) AS `name`,`a`.`lfno` AS `lfno`,sum(`v1`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-simuldari`.`voucher` `v1` join `co-operativebank-simuldari`.`quick_name` `a`) where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`cr` <> \'0\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`sub_head` = \'14101\') and (`v1`.`date` = \'2018-05-02\')) group by `a`.`acc_no` union all select `v1`.`no` AS `no`,`v1`.`Acc_no` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v1`.`cr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-simuldari`.`voucher` `v1` join `co-operativebank-simuldari`.`quick_name` `a`) where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`cr` <> \'0\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`sub_head` = \'14101\') and (`v1`.`date` = \'2018-05-02\')) group by `a`.`acc_no`
md5=2a4bcb3009db36b9ab37e7aa00f80615
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2021-07-22 15:12:16
create-version=1
source=select  `v1`.`no`  AS  `no` ,\n `v1`.`Acc_no`  AS  `acc_no` ,\nconcat(  `a`.`name` ,  \' \', convert( if( (  `v1`.`vch_type`  =  \'Opnn Bal\' ),  \'[NEW]\',  \'\'  )  using latin1 )  )  AS  `name` ,\n `a`.`lfno`  AS  `lfno` ,\nsum(  `v1`.`cr`  )  AS  `CASH` ,\n \'0\' AS  `TRAN` ,\n `v1`.`date`  AS  `date` ,\n `v1`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-simuldari`.`voucher`  `v1`  join  `co-operativebank-simuldari`.`quick_name`  `a`  ) where ( (  `v1`.`Acc_no`  =  `a`.`acc_no`  ) and (  `v1`.`cr`  <>  \'0\' ) and (  `v1`.`deposit_type`  =  \'CASH\' ) and (  `v1`.`sub_head`  =  \'14101\' ) and (  `v1`.`date`  =  \'2018-05-02\' ) ) group  by  `a`.`acc_no`  union  all  select  `v1`.`no`  AS  `no` ,\n `v1`.`Acc_no`  AS  `acc_no` ,\n `a`.`name`  AS  `name` ,\n `a`.`lfno`  AS  `lfno` ,\n \'0\' AS  `0` ,\nsum(  `v1`.`cr`  )  AS  `TRAN` ,\n `v1`.`date`  AS  `date` ,\n `v1`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-simuldari`.`voucher`  `v1`  join  `co-operativebank-simuldari`.`quick_name`  `a`  ) where ( (  `v1`.`Acc_no`  =  `a`.`acc_no`  ) and (  `v1`.`cr`  <>  \'0\' ) and (  `v1`.`deposit_type`  =  \'TRANSFER\' ) and (  `v1`.`sub_head`  =  \'14101\' ) and (  `v1`.`date`  =  \'2018-05-02\' ) ) group  by  `a`.`acc_no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v1`.`no` AS `no`,`v1`.`Acc_no` AS `acc_no`,concat(`a`.`name`,\' \',convert(if((`v1`.`vch_type` = \'Opnn Bal\'),\'[NEW]\',\'\') using latin1)) AS `name`,`a`.`lfno` AS `lfno`,sum(`v1`.`cr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-simuldari`.`voucher` `v1` join `co-operativebank-simuldari`.`quick_name` `a`) where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`cr` <> \'0\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`sub_head` = \'14101\') and (`v1`.`date` = \'2018-05-02\')) group by `a`.`acc_no` union all select `v1`.`no` AS `no`,`v1`.`Acc_no` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v1`.`cr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-simuldari`.`voucher` `v1` join `co-operativebank-simuldari`.`quick_name` `a`) where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`cr` <> \'0\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`sub_head` = \'14101\') and (`v1`.`date` = \'2018-05-02\')) group by `a`.`acc_no`
