TYPE=VIEW
query=select `v1`.`Acc_no` AS `acc_no`,`a`.`Name` AS `name`,(sum(`v1`.`dr`) - sum(`v1`.`interest`)) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`lo` `a` where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`sub_head` = \'23213\') and (`v1`.`date` = \'2018-05-07\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`dr` <> \'0\')) group by `a`.`acc_no` union all select `v1`.`Acc_no` AS `acc_no`,`a`.`Name` AS `name`,\'0\' AS `0`,(sum(`v1`.`dr`) - sum(`v1`.`interest`)) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`lo` `a` where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`sub_head` = \'23213\') and (`v1`.`date` = \'2018-05-07\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`dr` <> \'0\')) group by `a`.`acc_no`
md5=2eacfc69bad196717542d92955e53d13
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2018-05-08 05:46:25
create-version=1
source=select v1.acc_no,name,(sum(dr)-sum(v1.interest)) as CASH,\'0\' as TRAN,date,v1.sub_head from voucher v1,lo a  where v1.acc_no=a.acc_no and v1.sub_head=\'23213\' and v1.date=\'2018-05-07\' AND DEPOSIT_TYPE=\'CASH\' AND DR<>\'0\' group by a.acc_no  UNION ALL select v1.acc_no,name,\'0\',(sum(dr)-sum(v1.interest)) as TRAN,date,v1.sub_head from voucher v1,lo a  where v1.acc_no=a.acc_no and v1.sub_head=\'23213\' and v1.date=\'2018-05-07\' AND DEPOSIT_TYPE=\'TRANSFER\' AND DR<>\'0\' group by a.acc_no
client_cs_name=latin1
connection_cl_name=latin1_swedish_ci
view_body_utf8=select `v1`.`Acc_no` AS `acc_no`,`a`.`Name` AS `name`,(sum(`v1`.`dr`) - sum(`v1`.`interest`)) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`lo` `a` where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`sub_head` = \'23213\') and (`v1`.`date` = \'2018-05-07\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`dr` <> \'0\')) group by `a`.`acc_no` union all select `v1`.`Acc_no` AS `acc_no`,`a`.`Name` AS `name`,\'0\' AS `0`,(sum(`v1`.`dr`) - sum(`v1`.`interest`)) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from `co-operativebank`.`voucher` `v1` join `co-operativebank`.`lo` `a` where ((`v1`.`Acc_no` = `a`.`acc_no`) and (`v1`.`sub_head` = \'23213\') and (`v1`.`date` = \'2018-05-07\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`dr` <> \'0\')) group by `a`.`acc_no`
