TYPE=VIEW
query=select `i`.`code` AS `acc_no`,if((`i`.`draw_bank` = \'\'),`s`.`sub_head`,`i`.`draw_bank`) AS `name` from (`co-operativebank-dekhaliannapurna`.`income` `i` join `co-operativebank-dekhaliannapurna`.`sub_head` `s`) where ((`s`.`code` = `i`.`sub_head`) and (`i`.`code` like \'INC%\')) union all select `d`.`code` AS `code`,concat(`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name` from (`co-operativebank-dekhaliannapurna`.`shares` `d` join `co-operativebank-dekhaliannapurna`.`applicant` `a`) where (`d`.`acc_no` = `a`.`Acc_No`) group by `a`.`Acc_No`,`d`.`acc_no` union all select `a`.`Acc_No` AS `acc_no`,concat(`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name` from `co-operativebank-dekhaliannapurna`.`applicant` `a` group by `a`.`Acc_No` union all select `co-operativebank-dekhaliannapurna`.`loan_account`.`acc_no` AS `acc_no`,`co-operativebank-dekhaliannapurna`.`loan_account`.`name` AS `name` from `co-operativebank-dekhaliannapurna`.`loan_account` group by `co-operativebank-dekhaliannapurna`.`loan_account`.`acc_no`
md5=b65806bd89fba45e7a8512cd1bb888c9
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2022-05-24 07:43:32
create-version=1
source=select  `i`.`code`  AS  `acc_no` ,\nif( (  `i`.`draw_bank`  =  \'\' ),  `s`.`sub_head` ,  `i`.`draw_bank`  )  AS  `name`  from (  `co-operativebank-dekhaliannapurna`.`income`  `i`  join  `co-operativebank-dekhaliannapurna`.`sub_head`  `s`  ) where ( (  `s`.`code`  =  `i`.`sub_head`  ) and (  `i`.`code`  like  \'INC%\' ) ) union  all  select  `d`.`code`  AS  `code` ,\nconcat(  `a`.`fname` ,  \' \',  `a`.`mname` ,  \' \',  `a`.`lname`  )  AS  `name`  from (  `co-operativebank-dekhaliannapurna`.`shares`  `d`  join  `co-operativebank-dekhaliannapurna`.`applicant`  `a`  ) where (  `d`.`acc_no`  =  `a`.`Acc_No`  ) group  by  `a`.`Acc_No` ,\n `d`.`acc_no`  union  all  select  `a`.`Acc_No`  AS  `acc_no` ,\nconcat(  `a`.`fname` ,  \' \',  `a`.`mname` ,  \' \',  `a`.`lname`  )  AS  `name`  from  `co-operativebank-dekhaliannapurna`.`applicant`  `a`  group  by  `a`.`Acc_No`  union  all  select  `loan_account`.`acc_no`  AS  `acc_no` ,\n `loan_account`.`name`  AS  `name`  from  `co-operativebank-dekhaliannapurna`.`loan_account`  group  by  `loan_account`.`acc_no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `i`.`code` AS `acc_no`,if((`i`.`draw_bank` = \'\'),`s`.`sub_head`,`i`.`draw_bank`) AS `name` from (`co-operativebank-dekhaliannapurna`.`income` `i` join `co-operativebank-dekhaliannapurna`.`sub_head` `s`) where ((`s`.`code` = `i`.`sub_head`) and (`i`.`code` like \'INC%\')) union all select `d`.`code` AS `code`,concat(`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name` from (`co-operativebank-dekhaliannapurna`.`shares` `d` join `co-operativebank-dekhaliannapurna`.`applicant` `a`) where (`d`.`acc_no` = `a`.`Acc_No`) group by `a`.`Acc_No`,`d`.`acc_no` union all select `a`.`Acc_No` AS `acc_no`,concat(`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name` from `co-operativebank-dekhaliannapurna`.`applicant` `a` group by `a`.`Acc_No` union all select `co-operativebank-dekhaliannapurna`.`loan_account`.`acc_no` AS `acc_no`,`co-operativebank-dekhaliannapurna`.`loan_account`.`name` AS `name` from `co-operativebank-dekhaliannapurna`.`loan_account` group by `co-operativebank-dekhaliannapurna`.`loan_account`.`acc_no`
