MySQL Select statement Where table1.id != table2.id
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-04-14T11:27:49Z
Indexed on
2010/04/14
11:43 UTC
Read the original article
Hit count: 300
I have a table of data which has posts, then I have a separate table of data which has deleted posts. What happens when a post is deleted is that it's ID get's added to the deleted table rather than removing the post entry.
What is a clean efficient way of selecting all the posts from the posts table without selecting the ones that have their ID in the deleted table
© Stack Overflow or respective owner