TYPE=VIEW
query=select `i`.`code` AS `acc_no`,if((`i`.`Exp_details` = \'\'),`s`.`sub_head`,`i`.`Exp_details`) AS `name` from (`co-operativebank-purbadekhali`.`exp` `i` join `co-operativebank-purbadekhali`.`sub_head` `s`) where (`s`.`code` = `i`.`sub_head`) union all select `v`.`Acc_no` AS `acc_no`,`s`.`sub_head` AS `name` from (`co-operativebank-purbadekhali`.`voucher` `v` join `co-operativebank-purbadekhali`.`sub_head` `s`) where ((`v`.`head` = `s`.`head`) and (`s`.`head` >= \'61000\') and (`s`.`head` <= \'62000\')) group by `v`.`Acc_no`
md5=a1e65721b914cd332263fd945abe0f8f
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2022-05-24 06:21:36
create-version=1
source=select  `i`.`code`  AS  `acc_no` ,\nif( (  `i`.`Exp_details`  =  \'\' ),  `s`.`sub_head` ,  `i`.`Exp_details`  )  AS  `name`  from (  `co-operativebank-purbadekhali`.`exp`  `i`  join  `co-operativebank-purbadekhali`.`sub_head`  `s`  ) where (  `s`.`code`  =  `i`.`sub_head`  ) union  all  select  `v`.`Acc_no`  AS  `acc_no` ,\n `s`.`sub_head`  AS  `name`  from (  `co-operativebank-purbadekhali`.`voucher`  `v`  join  `co-operativebank-purbadekhali`.`sub_head`  `s`  ) where ( (  `v`.`head`  =  `s`.`head`  ) and (  `s`.`head`  >=  \'61000\' ) and (  `s`.`head`  <=  \'62000\' ) ) group  by  `v`.`Acc_no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `i`.`code` AS `acc_no`,if((`i`.`Exp_details` = \'\'),`s`.`sub_head`,`i`.`Exp_details`) AS `name` from (`co-operativebank-purbadekhali`.`exp` `i` join `co-operativebank-purbadekhali`.`sub_head` `s`) where (`s`.`code` = `i`.`sub_head`) union all select `v`.`Acc_no` AS `acc_no`,`s`.`sub_head` AS `name` from (`co-operativebank-purbadekhali`.`voucher` `v` join `co-operativebank-purbadekhali`.`sub_head` `s`) where ((`v`.`head` = `s`.`head`) and (`s`.`head` >= \'61000\') and (`s`.`head` <= \'62000\')) group by `v`.`Acc_no`
