Currently, I have a table of posts and a table of users. Naturally, each user can be associated with multiple posts. Each row in the post table stores the user ID of the user that created the post. Here are example rows:
Post row: post_id headline user_id
User row: user_id user_name
I want to return a Cursor containing both the post row and its corresponding user row by matching the user ID in the post table to the user ID in the user table. What type of query would I use to achieve this? The result should be:
Combined row: post_id headline user_id user_name
More generally: How do I combine data from two separate tables based on a shared piece of data into a single Cursor?