I have two table in my database.
1) User Table
id username password logo email
1 admin admin NULL 1
2 support support NULL NULL
3 test test NULL NULL
2) Link Account Table
ID AccountID LinkAccountID
1 1 2
Now if i select username with accountid 1 then it will return me Admin and Support
same way if i select username with accountid 2 then also it will return admin and support
and if i select username with accountid 3 then it will return only test
something like vice versa if in link account table account id is 1 or linkaccountid is 1 that will return both id
Thanks in advance
Regards
Amit Vyas
1 Answer