I have two tables Activity and Action. One or more actions can be performed for an activity. And the relationships between Activity and Action is given in a third table call
SELECT ActivityText AS Activity, ActionText AS ApplicableAction
FROM Activity
JOIN ActivityAction on Activity.ActivityId = ActivityAction.ActivityID
JOIN Action on Action.ActionId = ActivityAction.ActionID
You have IDs in Action table and when you join table ActivityAction on ActivityId key then you are able to join activity table