I want to get TABLE2 data from TABLE1 data.
If flg is 1, cusId1 and cusId2 are same person.
flg
1
cusId1
cusId2
For exa