To select only matching rows from two table:
Use INNER JOIN
select * from table_a as t1 INNER JOIN table_b as t2 ON t1.column1=t2.column1