I’ve two tables as User and User_activity and the structure of them are,
User
id
name
email
etc..
user_activity
id,
initiator_id,
source_id,
target_id,
activity_code,
activity
Here i want to select all the activity list for a user (i can refer them to source_id) with all names of initiator, source, target..
How to get that?
You simply join three times, using aliases for each f the three times you reference User…