TYPE=VIEW
query=select `ht`.`code` AS `code`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - sum(`v`.`interest`)) AS `bal` from (((`co-operativebank-243`.`voucher` `v` join `co-operativebank-243`.`head_type` `ht`) join `co-operativebank-243`.`head` `h`) join `co-operativebank-243`.`sub_head` `sh`) where ((`v`.`sub_head` = `sh`.`code`) and (`v`.`head` = `h`.`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` < \'2010-07-02\')) group by `ht`.`code`
md5=18301b4709cf9d9628b180f902b224af
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2025-09-15 05:27:53
create-version=1
source=select  `ht`.`code`  AS  `code` ,\n( ( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) - sum(  `v`.`interest`  )  ) AS  `bal`  from ( ( (  `co-operativebank-243`.`voucher`  `v`  join  `co-operativebank-243`.`head_type`  `ht`  ) join  `co-operativebank-243`.`head`  `h`  ) join  `co-operativebank-243`.`sub_head`  `sh`  ) where ( (  `v`.`sub_head`  =  `sh`.`code`  ) and (  `v`.`head`  =  `h`.`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`  <  \'2010-07-02\' ) ) group  by  `ht`.`code`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `ht`.`code` AS `code`,((sum(`v`.`cr`) - sum(`v`.`dr`)) - sum(`v`.`interest`)) AS `bal` from (((`co-operativebank-243`.`voucher` `v` join `co-operativebank-243`.`head_type` `ht`) join `co-operativebank-243`.`head` `h`) join `co-operativebank-243`.`sub_head` `sh`) where ((`v`.`sub_head` = `sh`.`code`) and (`v`.`head` = `h`.`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` < \'2010-07-02\')) group by `ht`.`code`
