I have i question about JOINign i have tables User and Category and Request
| Id | name | surname |
|---|---|---|
| 1 | Alex | Morgan |
| 2 | Tom | Brady |
| 3 | Smith | Rowe |
Category
| Id | Category |
|---|---|
| 1 | Party |
| 2 | Football match |
And now someone create request for another Request
| Id_request | Id_caller | Id_receiver | id_category |
|---|---|---|---|
| 1 | 1 | 2 | 1 |
| 2 | 1 | 3 | 2 |
Now i want query to find all request where user 1 (Alex) is caller and get this result
| Id_request | Caller_name | Caller_surname | Receiver_name | Receiver _surname | Category |
|---|---|---|---|---|---|
| 1 | Alex | Morgan | Tom | Brady | Party |
| 2 | Alex | Morgan | Smith | Rowe | Football match |
I try with JOIN but i didn't get this result. Pls help.