I have 2 tables (1 main table and 1 supplementary table) with ID #'s on each table. Some ID #'s appear on both tables and some don't. I need to flag/new field (named Both) which shows if the ID # appear on the supplementary table and the main table.
I am new to SQL and know of IF statements but haven't had much success using with it using more than 1 table.
Main Table
ID# | Fruit
1 | apple
2 | peach
3 | orange
4 | pear
Supplementary Table
ID# | Fruit
3 | orange
4 | pear
Any help would be appreciated! -Newb