I have two tables to compare the tables are
TABLE 1, TABLE 2,
TABLE 1 - COLUMN A, COLUMN B. COLIUMN C
COLUMN A is name1, COLUMN B is name2 and COLUMN C is true/ false
so the question is, if COLUMN A, COLUMN B in TABLE 1 is equall to true in COLUMN C of table 1 then show Table Result,
if COLUMN B, COLUMN A in TABLE 1 is equall to false in COLUMN C of table 1 then hide TABLE RESULT
-------------------------------------------------
TABLE 2, - COLUMN A, COLUMN B
COLUMN A is name1, COLUMN B is name2
Then Final Result here
TABLE RESULT - COLUMN C, COLUMN D