Hello!
I am trying to find in which team was an employee when he executed a specific job.
Let's say I have these 2 tables :
Job table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]JobID[/TD]
[TD]TeamNum[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]2014-05-05[/TD]
[TD]ABC[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2014-12-01[/TD]
[TD]ABC[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]2014-12-12[/TD]
[TD]XYZ[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]
Team composition table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]TeamNum[/TD]
[TD]StartDate[/TD]
[TD]EndDate[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]1[/TD]
[TD]2014-01-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]2014-01-01[/TD]
[TD]2014-06-30[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]3[/TD]
[TD]2014-07-01[/TD]
[TD]2014-11-30[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]2014-12-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]3[/TD]
[TD]2014-01-01[/TD]
[TD]2014-08-31[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]1[/TD]
[TD]2014-09-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Roger[/TD]
[TD]2[/TD]
[TD]2014-01-01[/TD]
[TD]2014-03-31[/TD]
[/TR]
</tbody>[/TABLE]
I can't get it done because I have the date and name criteria
Thank you very much!
I am trying to find in which team was an employee when he executed a specific job.
Let's say I have these 2 tables :
Job table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]JobID[/TD]
[TD]TeamNum[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]2014-05-05[/TD]
[TD]ABC[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2014-12-01[/TD]
[TD]ABC[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]2014-12-12[/TD]
[TD]XYZ[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]
Team composition table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]TeamNum[/TD]
[TD]StartDate[/TD]
[TD]EndDate[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]1[/TD]
[TD]2014-01-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]2014-01-01[/TD]
[TD]2014-06-30[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]3[/TD]
[TD]2014-07-01[/TD]
[TD]2014-11-30[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]2014-12-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]3[/TD]
[TD]2014-01-01[/TD]
[TD]2014-08-31[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]1[/TD]
[TD]2014-09-01[/TD]
[TD]2014-12-31[/TD]
[/TR]
[TR]
[TD]Roger[/TD]
[TD]2[/TD]
[TD]2014-01-01[/TD]
[TD]2014-03-31[/TD]
[/TR]
</tbody>[/TABLE]
I can't get it done because I have the date and name criteria
Thank you very much!