TYPE=VIEW
query=(select `s`.`sub_head` AS `sub_head`,sum(`v`.`dr`) AS `intbal`,(`s`.`code` + 48000) AS `o_sub_head` from `co-operativebank-henria`.`synopsis` `s` join `co-operativebank-henria`.`voucher` `v` where (((`s`.`code` + 48000) = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\') and (`s`.`sl_no` = 2)) group by `v`.`sub_head`) union (select `s`.`sub_head` AS `sub_head`,sum(`v`.`dr`) AS `intbal`,(`s`.`code` + 48000) AS `o_sub_head` from `co-operativebank-henria`.`synopsis` `s` join `co-operativebank-henria`.`voucher` `v` where (((`s`.`code` + 48000) = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\') and (`s`.`sl_no` = 3)) group by `v`.`sub_head`) union (select `s`.`sub_head` AS `sub_head`,sum(`v`.`cr`) AS `intbal`,`s`.`int_head` AS `o_sub_head` from `co-operativebank-henria`.`loanintsubhead` `s` join `co-operativebank-henria`.`voucher` `v` where ((`s`.`int_head` = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\')) group by `v`.`sub_head`)
md5=5e8dc0d82ddd049cf867a8915891d49c
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2025-06-16 12:28:49
create-version=1
source=(select s.sub_head, sum(dr) as intbal,(s.code+48000) as o_sub_head from `synopsis` s,voucher v  where (s.code+48000)=v.sub_head and date>=\'2024-04-01\' and date<=\'2025-03-31\' and sl_no=2  group by v.sub_head ) union (select s.sub_head, sum(dr) as intbal,(s.code+48000) as o_sub_head from `synopsis` s,voucher v  where (s.code+48000)=v.sub_head and date>=\'2024-04-01\' and date<=\'2025-03-31\' and sl_no=3  group by v.sub_head) union (select s.sub_head, sum(cr) as intbal,int_head as o_sub_head from `loanintsubhead` s,voucher v  where  s.int_head=v.sub_head and date>=\'2024-04-01\' and date<=\'2025-03-31\'  group by v.sub_head)
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=(select `s`.`sub_head` AS `sub_head`,sum(`v`.`dr`) AS `intbal`,(`s`.`code` + 48000) AS `o_sub_head` from `co-operativebank-henria`.`synopsis` `s` join `co-operativebank-henria`.`voucher` `v` where (((`s`.`code` + 48000) = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\') and (`s`.`sl_no` = 2)) group by `v`.`sub_head`) union (select `s`.`sub_head` AS `sub_head`,sum(`v`.`dr`) AS `intbal`,(`s`.`code` + 48000) AS `o_sub_head` from `co-operativebank-henria`.`synopsis` `s` join `co-operativebank-henria`.`voucher` `v` where (((`s`.`code` + 48000) = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\') and (`s`.`sl_no` = 3)) group by `v`.`sub_head`) union (select `s`.`sub_head` AS `sub_head`,sum(`v`.`cr`) AS `intbal`,`s`.`int_head` AS `o_sub_head` from `co-operativebank-henria`.`loanintsubhead` `s` join `co-operativebank-henria`.`voucher` `v` where ((`s`.`int_head` = `v`.`sub_head`) and (`v`.`date` >= \'2024-04-01\') and (`v`.`date` <= \'2025-03-31\')) group by `v`.`sub_head`)
