title: SQL statement to check if data exists in one table and not in two other tables
body: <p>I'm creating 1 temp table (temp1) using table1.
  and I want to check if data from temp table is present in table1 and table2.</p>
  <p>table1 and table2 have same columns.</p>