I
I
Ivan Ivanov2017-10-14 18:53:49
MySQL
Ivan Ivanov, 2017-10-14 18:53:49

How to link a table with tasks and users?

Hello.
There is a table with a list of users and a list of tasks for them. Each task has a director and several performers and observers, which can be any of the users. How to link these tables and get tasks for which, for example, a certain user is an observer?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2017-10-14
@mmmaaak

Through an additional link table, which will contain id, user_id, task_id, role

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question