In my database I have three tables: one contains words (word_id, word), the other lists categories (cat_id, cat_name) and third one assigns categories to all words (word_id, cat_id) (one or more categories per word).
Is it possible to delete all rows in the categories-to-words-table with a word_id that does not currently exist in the words table?