There is a table t1 in which data is stored: name, time, etc.
id | name 1 | data 1 2 | data 2 3 | data 3
There is a second table t2 in which there is a connection.
id | t1_id_1 | t1_id_2 1 | 1 | 2 2 | 1 | 3
I need to get that answer.
1 - data 1 \ data 2 2 - data 1 \ data 3
How to perform such a request? Can generally change the structure of the table?