I have two tables, in which table 1 contains 4 columns while table 2 contains 8 columns. I have two columns in table1 that I want to compare them with two columns in table2.
SELECT * FROM table1 t1 RIGHT JOIN table2 t2 WHERE t1.c1 = t2.c6 AND t1.c2 = t2.c7