I am a newbie to Access, and wonder if someone could give me a hand with a query I am trying to create. If I can beg your indulgence, my problem is as follows:
I have two tables, one with names and date ranges, as follows:
John Smith 4/1/01 6/1/01
John Smith 2/2/98 3/2/98
Irv Jones 3/9/99 3/16/99
Bob Welch 3/1/01 4/4/01
Bob Welch 9/1/02 9/16/02
My second Table is a list of co-workers for each person from table A. I am querying to find overlap of the dates, as would be seen in John Smith's first row and Bob Welch's first row. My query then pulls these two men out and lists coworkers for each, but because they have two date ranges associated with each, it lists the co-workers twice for each. I have tried using SQL Distinct and Distinct Row, as well as Unique Record and Unique Value functions, but think I am using them wrong to achieve my goal. Can anyone give me a hand based upon this rambling dissertation?
I have two tables, one with names and date ranges, as follows:
John Smith 4/1/01 6/1/01
John Smith 2/2/98 3/2/98
Irv Jones 3/9/99 3/16/99
Bob Welch 3/1/01 4/4/01
Bob Welch 9/1/02 9/16/02
My second Table is a list of co-workers for each person from table A. I am querying to find overlap of the dates, as would be seen in John Smith's first row and Bob Welch's first row. My query then pulls these two men out and lists coworkers for each, but because they have two date ranges associated with each, it lists the co-workers twice for each. I have tried using SQL Distinct and Distinct Row, as well as Unique Record and Unique Value functions, but think I am using them wrong to achieve my goal. Can anyone give me a hand based upon this rambling dissertation?
Last edited: