Using the following data, I am attempting to delete matching records from both tables.
Fruits
ID Value
1 Apple
2 Pear
3 Banana
4 Grape
Animals
ID Value
1 Bear
2 Monkey
3 Apple
4 Pig
There is no defined relationship between these two tables.
Since "Apple" appears in both tables, I would like to remove this record from each of them.
I've tried the following query to accomplish this:
DELETE DISTINCTROW Animals.*, Fruits.*
FROM Animals INNER JOIN Fruits ON Animals.Value = Fruits.Value;
However, when I run this, I receive the following error:
Could not delete from specified tables.
What am I doing wrong, and what can I do to fix this?