I'm trying to clean up the database.
My goal is to remove the posts from members that have been deleted.
I want a select statement that shows me how many of them there are before deleting.
I think I'll be using three tables with this.
table (field)[ul]users (user_id)
posts (poster_id)
posts_text (post_id)[/ul]
Every post is given and id number. Then that id number is assigned to the post text.
The relationship between users and posts is the user_id and poster_id.
The relationship between posts and posts_text is the post_id.
I tried this, but it didn't work so well.
[php]SELECT *
FROM posts LEFT JOIN users
ON posts.poster_id != users.user_id[/php]
I think I caused some site load errors with this query too, lol.