TYPE=VIEW
query=select `account`.`Date_open` AS `date_open`,`account`.`Acc_no` AS `acc_no`,`account`.`Name` AS `name`,`lb`.`amt` AS `bal`,`account`.`Sub_Head` AS `sub_head`,`account`.`Acc_Type` AS `acc_type` from (`co-operativebank-bajbajia`.`account` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where (`account`.`Acc_no` = `lb`.`ledger`) union all select curdate() AS `CURDATE()`,`co-operativebank-bajbajia`.`cash_account`.`code` AS `acc_no`,`co-operativebank-bajbajia`.`cash_account`.`name` AS `name`,`lb`.`amt` AS `bal`,`co-operativebank-bajbajia`.`cash_account`.`sub_head` AS `sub_head`,\'Cash\' AS `Cash` from (`co-operativebank-bajbajia`.`cash_account` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where (`co-operativebank-bajbajia`.`cash_account`.`code` = `lb`.`ledger`) union all select `la`.`date_open` AS `date_open`,`la`.`acc_no` AS `acc_no`,concat(`a`.`initial`,\' \',`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name`,`lb`.`amt` AS `amt`,`la`.`sub_head` AS `sub_head`,\'CC\' AS `CC` from ((`co-operativebank-bajbajia`.`loan_acc` `la` join `co-operativebank-bajbajia`.`applicant` `a`) join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where ((`la`.`acc_no` = `a`.`Acc_No`) and (`la`.`acc_no` = `lb`.`ledger`)) union all select `b`.`date` AS `date`,`co-operativebank-bajbajia`.`brw`.`code` AS `code`,`co-operativebank-bajbajia`.`brw`.`name` AS `name`,`lb`.`amt` AS `amt`,`co-operativebank-bajbajia`.`brw`.`sub_head` AS `sub_head`,\'BRW\' AS `BRW` from ((`co-operativebank-bajbajia`.`borrowing` `b` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) join `co-operativebank-bajbajia`.`brw`) where ((`co-operativebank-bajbajia`.`brw`.`code` = `lb`.`ledger`) and (`co-operativebank-bajbajia`.`brw`.`code` = `b`.`scheme`))
md5=6633825320aa576d612b0cbd45d5d309
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2019-01-10 05:52:05
create-version=1
source=select `account`.`Date_open` AS `date_open`,`account`.`Acc_no` AS `acc_no`,`account`.`Name` AS `name`,`lb`.`amt` AS `bal`,`account`.`Sub_Head` AS `sub_head`,`account`.`Acc_Type` AS `acc_type` from (`account` join `ledger_balance` `lb`) where (`account`.`Acc_no` = `lb`.`ledger`) union all select curdate() AS `CURDATE()`,`cash_account`.`code` AS `acc_no`,`cash_account`.`name` AS `name`,`lb`.`amt` AS `bal`,`cash_account`.`sub_head` AS `sub_head`,\'Cash\' AS `Cash` from (`cash_account` join `ledger_balance` `lb`) where (`cash_account`.`code` = `lb`.`ledger`) union all select `la`.`date_open` AS `date_open`,`la`.`acc_no` AS `acc_no`,concat(`a`.`initial`,\' \',`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name`,`lb`.`amt` AS `amt`,`la`.`sub_head` AS `sub_head`,\'CC\' AS `CC` from ((`loan_acc` `la` join `applicant` `a`) join `ledger_balance` `lb`) where ((`la`.`acc_no` = `a`.`Acc_No`) and (`la`.`acc_no` = `lb`.`ledger`)) union all select `b`.`date` AS `date`,`brw`.`code` AS `code`,`brw`.`name` AS `name`,`lb`.`amt` AS `amt`,`brw`.`sub_head` AS `sub_head`,\'BRW\' AS `BRW` from ((`borrowing` `b` join `ledger_balance` `lb`) join `brw`) where ((`brw`.`code` = `lb`.`ledger`) and (`brw`.`code` = `b`.`scheme`))
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `account`.`Date_open` AS `date_open`,`account`.`Acc_no` AS `acc_no`,`account`.`Name` AS `name`,`lb`.`amt` AS `bal`,`account`.`Sub_Head` AS `sub_head`,`account`.`Acc_Type` AS `acc_type` from (`co-operativebank-bajbajia`.`account` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where (`account`.`Acc_no` = `lb`.`ledger`) union all select curdate() AS `CURDATE()`,`co-operativebank-bajbajia`.`cash_account`.`code` AS `acc_no`,`co-operativebank-bajbajia`.`cash_account`.`name` AS `name`,`lb`.`amt` AS `bal`,`co-operativebank-bajbajia`.`cash_account`.`sub_head` AS `sub_head`,\'Cash\' AS `Cash` from (`co-operativebank-bajbajia`.`cash_account` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where (`co-operativebank-bajbajia`.`cash_account`.`code` = `lb`.`ledger`) union all select `la`.`date_open` AS `date_open`,`la`.`acc_no` AS `acc_no`,concat(`a`.`initial`,\' \',`a`.`fname`,\' \',`a`.`mname`,\' \',`a`.`lname`) AS `name`,`lb`.`amt` AS `amt`,`la`.`sub_head` AS `sub_head`,\'CC\' AS `CC` from ((`co-operativebank-bajbajia`.`loan_acc` `la` join `co-operativebank-bajbajia`.`applicant` `a`) join `co-operativebank-bajbajia`.`ledger_balance` `lb`) where ((`la`.`acc_no` = `a`.`Acc_No`) and (`la`.`acc_no` = `lb`.`ledger`)) union all select `b`.`date` AS `date`,`co-operativebank-bajbajia`.`brw`.`code` AS `code`,`co-operativebank-bajbajia`.`brw`.`name` AS `name`,`lb`.`amt` AS `amt`,`co-operativebank-bajbajia`.`brw`.`sub_head` AS `sub_head`,\'BRW\' AS `BRW` from ((`co-operativebank-bajbajia`.`borrowing` `b` join `co-operativebank-bajbajia`.`ledger_balance` `lb`) join `co-operativebank-bajbajia`.`brw`) where ((`co-operativebank-bajbajia`.`brw`.`code` = `lb`.`ledger`) and (`co-operativebank-bajbajia`.`brw`.`code` = `b`.`scheme`))
