Suppose I have 2 such tables. The fields risk1_id, risk2_id, risk3_id are associated (FOREIGN KEY) with the id field from (the first table) let's say this is the table of risks.

And you need to link the tables by the id, risk1_id, risk2_id, risk3_id fields. Yes, I know that for good you need another table.