I have a bunch of Users, each of whom has many Posts. Schema:
Users: id Posts: user_id, rating
How do I find all Users who have at least one po
Use an inner join:
SELECT * from users INNER JOIN posts p on users.id = p.user_id where p.rating > 10;