I want to delete information in two different tables in 1 query based on identifier.
I tried several solutions to accomplish this task, but still haven't completed what I'm trying to do.
Table 1 - Contents
ContentID | Content
Table 2 - Voices
VoteID | ContentID | Vote
I want to delete the content line based on its identifier and any or all votes (there may be 0 vote entries). I DO NOT want to use transactions, cascading deletes, or use 2 different queries.
Which is Best - LEFT JOIN? INNER JOIN?
Any help here would be greatly appreciated.
source
share