Topic: If exist update table
Greetings,
I need sql query to check if value exist or not
I got two tables
table1:
id name exist_in_table2
1 john yes
2 dave no
3 mark no
table2:
id id_table1
1 1
2 6
3 7
I want to update table1 column "exist_in_table2" to yes if exists or no if not exists
BR