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`.`synopsis` `s` join `co-operativebank`.`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`.`synopsis` `s` join `co-operativebank`.`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`.`loanintsubhead` `s` join `co-operativebank`.`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=915b984dc14b552b2beb294088303906
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2025-04-25 05:31:21
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`.`synopsis` `s` join `co-operativebank`.`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`.`synopsis` `s` join `co-operativebank`.`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`.`loanintsubhead` `s` join `co-operativebank`.`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`)
