KarimGawish
5 years agoQrew Member
Many to Many Relationship
Hello All,
I have a table with lists of tasks that we need to work on daily and another Schedule table that has all employees and their availability dates. The usual situation is that 1 employee can finish several tasks per day, but some tasks require 2 employees to work on the same task.
So right now the relationship is that 1-day schedule has many tasks (Diagram 1 attached). With the date field being the key field in the schedule and the due date on the tasks table is the reference field.
How can I have this relationship without creating yet another table (Diagram 2 attached)?
Or what is the least messy way to achieve this.
------------------------------
Karim Gawish
------------------------------
I have a table with lists of tasks that we need to work on daily and another Schedule table that has all employees and their availability dates. The usual situation is that 1 employee can finish several tasks per day, but some tasks require 2 employees to work on the same task.
So right now the relationship is that 1-day schedule has many tasks (Diagram 1 attached). With the date field being the key field in the schedule and the due date on the tasks table is the reference field.
How can I have this relationship without creating yet another table (Diagram 2 attached)?
Or what is the least messy way to achieve this.
------------------------------
Karim Gawish
------------------------------