I have 2 MYSQL table like below. I\'m trying to do sql query based on if ID from table1 is exists in table 2 on table1_ID column. If not exists i will do another query. How