B
B
bogdan_nsk2020-04-20 08:19:06
MySQL
bogdan_nsk, 2020-04-20 08:19:06

How to merge tables?

There are two tables

User
5e9d2f7c2cb20949886949.png

Relationships
5e9d2f656d7e1646900465.png

I need to merge the tables in such a way that instead of all id-shniks in the "User Relationships" table their names are displayed, that is, name from the users table.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2020-04-20
@bogdan_nsk

Make a selection from the relationship table and select three joins of the user table for each join to each field, and in the select specify the name fields of these three joined tables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question