TYPE=VIEW
query=select `ht`.`code` AS `code`,`ht`.`head_type` AS `head_type`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal` from (((`co-operativebank-211`.`voucher` `v` join `co-operativebank-211`.`sub_head` `sh`) join `co-operativebank-211`.`head` `h`) join `co-operativebank-211`.`head_type` `ht`) where ((`v`.`sub_head` = `sh`.`code`) and (`sh`.`head` = `h`.`code`) and (`h`.`head_type` = `ht`.`code`) and (`v`.`sub_head` > \'10000\') and (`v`.`sub_head` < \'20000\') and (`v`.`date` < \'2016-04-01\')) group by `ht`.`code`
md5=acae9a39d39491653ac2a7833abef8d9
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2023-03-09 06:19:24
create-version=1
source=select  `ht`.`code`  AS  `code` ,\n `ht`.`head_type`  AS  `head_type` ,\n( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) AS  `bal`  from ( ( (  `co-operativebank-211`.`voucher`  `v`  join  `co-operativebank-211`.`sub_head`  `sh`  ) join  `co-operativebank-211`.`head`  `h`  ) join  `co-operativebank-211`.`head_type`  `ht`  ) where ( (  `v`.`sub_head`  =  `sh`.`code`  ) and (  `sh`.`head`  =  `h`.`code`  ) and (  `h`.`head_type`  =  `ht`.`code`  ) and (  `v`.`sub_head`  >  \'10000\' ) and (  `v`.`sub_head`  <  \'20000\' ) and (  `v`.`date`  <  \'2016-04-01\' ) ) group  by  `ht`.`code`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `ht`.`code` AS `code`,`ht`.`head_type` AS `head_type`,(sum(`v`.`cr`) - sum(`v`.`dr`)) AS `bal` from (((`co-operativebank-211`.`voucher` `v` join `co-operativebank-211`.`sub_head` `sh`) join `co-operativebank-211`.`head` `h`) join `co-operativebank-211`.`head_type` `ht`) where ((`v`.`sub_head` = `sh`.`code`) and (`sh`.`head` = `h`.`code`) and (`h`.`head_type` = `ht`.`code`) and (`v`.`sub_head` > \'10000\') and (`v`.`sub_head` < \'20000\') and (`v`.`date` < \'2016-04-01\')) group by `ht`.`code`
