Using mysql
DB design:
Users:
- userId
- userName
Posts:
- postId
- text
UserPosts (many-many):
- userId (FK)
- postId (FK)
I want to retrieve all the posts made by all the users. This is what I need:
- userName
- text
I’m not quite sure how to write this query. How do I do this 3 way join ??
1 Answer