I have a Database with the following two tables, USERS, POSTS I am looking for a way to get the count of how many posts a user has.
Users P
Figured it out. Smacks self in head
SELECT users.*, count( posts.user_id ) FROM posts LEFT JOIN users ON users.id=posts.user_id GROUP BY posts.user_id