TYPE=VIEW
query=select `sh`.`code` AS `code`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - sum(`v`.`interest`)) AS `bal` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`sub_head` `sh` where ((`v`.`sub_head` = `sh`.`code`) and (`v`.`sub_head` > \'10000\') and (`v`.`sub_head` < \'20000\') and (`v`.`date` < \'2010-07-02\')) group by `sh`.`code`
md5=4d26a5f819ed6ccc8446168856d8904f
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2016-07-02 09:24:47
create-version=1
source=select sh.code,(sum(cr) - sum(dr)-sum(interest)) AS bal from voucher v,sub_head sh where v.sub_head=sh.code and (v.sub_head>\'10000\' and v.sub_head<\'20000\') and date<\'2010-07-02\'  group by sh.code
client_cs_name=latin1
connection_cl_name=latin1_swedish_ci
view_body_utf8=select `sh`.`code` AS `code`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - sum(`v`.`interest`)) AS `bal` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`sub_head` `sh` where ((`v`.`sub_head` = `sh`.`code`) and (`v`.`sub_head` > \'10000\') and (`v`.`sub_head` < \'20000\') and (`v`.`date` < \'2010-07-02\')) group by `sh`.`code`
