I want to delete all rows in a table that include a certain code in the column that contains the codes. EX:
Name Code
John 3581
Alex 3132
Jake 2123
In another table, I have codes that correspond to a certain keyword. Some of the names have the code which corresponds to my keyword of choice that I want to eliminate. It look something like this EX:
Code Keyword
3132 apple
2123 apple
4921 banana
Let's say I want to only screen out apple from the table of names. How would I do that?
I tried setting up a loop, but I guess you cant do that in MS Access. Also, I wanted to do try a WHERE statement.
This is what I had in mind
DELETE table1 where table1.numbers = table2.numbers;
I am simply not sure how to execute this code.