I have three tables:
Map_table - id - content_id - from_user_id - to_user_id - timestamp User_table - id - name Content_table - id - title
For example: I want to select rows from Map_table, where Map_table.to_user_id = 1
and also provide User_table.name where Map_table.from_user_id = User_table.id
and also provide Content_table.title, where Map_table.content_id = Content_table.id
Map_table.content_id may be null and therefore not display in Content_table
If I got a ton of answers and still tearing my hair to get the results I need. Can any SQL guru see a simple solution. Potential JOINs are needed to fry my brain.
Any help would be greatly appreciated. For the sake of my scalp, by the way;)
Kosso source share