I'm using postgres 10.3
I have two tables:
table1
pk | term(varchar) | is_in_dictionary(bool)
--------------------------------------------
1 | abcdef |
2 | coffee |
3 | fdjk |
4 | dog |
table2 is a simple English dictionary
pk | word (varchar)
---------------------
1 | ad
2 | ads
3 | all
I want to insert TRUE in the empty column if term is found in table2 and FALSE if not found.
Please help. Thank you so much.