I had a terrible time coming up with a title for this question and an even worse time trying to solve my issue. I'm here seeking guidance yet again from the masters.
Let me outline the two data tables i'm working with and then i'll present you with my issue.
Data Table 1: "tblOffer"
tblOffer consists of close to 1 million records. In each of these records you will find an employee name, employee ID, type of offer, events (accepted offer, declined offer, & about 20 others), event date, & Group(this is my main problem as it's currently null)
Example of tblOffer:
[emp_name]|[emp_id]| [evt] | [evt_dt] |[Group]
Emp1 | qwerty | Declined | 01/02/12 | null
Emp2 | asdfg | Offer | 01/03/11 | null
Emp1 | qwerty | Approved | 05/02/12 | null
Emp3 | zxcvb | Accepted | 07/03/10 | null
Emp1 | qwerty | Counter | 06/15/12 | null
Table 2: "tblEmpInfo "
tblEmpInfo consists of several fields that describe the employee. Fields such as: Employee ID, Employee Name, Group (a, b, c, d, etc) Group End date(the date the employee left the group). Its important to know that employees often leave one group and move into another.
Example of tblEmpInfo:
[emp_name]|[emp_id]|[group]|[group_end_dt]
Emp1 | qwerty | a | 01/11/11
Emp1 | qwerty | b | 04/17/12
Emp1 | qwerty | a | 05/11/12
Emp1 | qwerty | d | Null (current group)
So, you may have guessed what i'm trying to do, but in case you haven't.. i'm trying to update the field "Group" in tblOffers with the group that the employee belonged to when the event occured.
Example of what i'm trying to do:
[emp_name]|[emp_id]| [evt] | [evt_dt] |[Group]
Emp1 | qwerty | Declined | 01/02/12 | b
Emp1 | qwerty | Approved | 05/02/12 | a
Emp1 | qwerty | Counter | 06/15/12 | d
Groups will not overlap, there is no min or max number of groups per employee, and every active employee will have a null group_end_date.
I only have access to MS Access 2000 & Excel 2007(nice huh?) with a basic understanding of SQL.
I tried very hard to provide everything you need. if i've failed to do so, please feel free to ask me any questions you have.
Thank you in advance for any guidance/solution that you may be able to provide.
Let me outline the two data tables i'm working with and then i'll present you with my issue.
Data Table 1: "tblOffer"
tblOffer consists of close to 1 million records. In each of these records you will find an employee name, employee ID, type of offer, events (accepted offer, declined offer, & about 20 others), event date, & Group(this is my main problem as it's currently null)
Example of tblOffer:
[emp_name]|[emp_id]| [evt] | [evt_dt] |[Group]
Emp1 | qwerty | Declined | 01/02/12 | null
Emp2 | asdfg | Offer | 01/03/11 | null
Emp1 | qwerty | Approved | 05/02/12 | null
Emp3 | zxcvb | Accepted | 07/03/10 | null
Emp1 | qwerty | Counter | 06/15/12 | null
Table 2: "tblEmpInfo "
tblEmpInfo consists of several fields that describe the employee. Fields such as: Employee ID, Employee Name, Group (a, b, c, d, etc) Group End date(the date the employee left the group). Its important to know that employees often leave one group and move into another.
Example of tblEmpInfo:
[emp_name]|[emp_id]|[group]|[group_end_dt]
Emp1 | qwerty | a | 01/11/11
Emp1 | qwerty | b | 04/17/12
Emp1 | qwerty | a | 05/11/12
Emp1 | qwerty | d | Null (current group)
So, you may have guessed what i'm trying to do, but in case you haven't.. i'm trying to update the field "Group" in tblOffers with the group that the employee belonged to when the event occured.
Example of what i'm trying to do:
[emp_name]|[emp_id]| [evt] | [evt_dt] |[Group]
Emp1 | qwerty | Declined | 01/02/12 | b
Emp1 | qwerty | Approved | 05/02/12 | a
Emp1 | qwerty | Counter | 06/15/12 | d
Groups will not overlap, there is no min or max number of groups per employee, and every active employee will have a null group_end_date.
I only have access to MS Access 2000 & Excel 2007(nice huh?) with a basic understanding of SQL.
I tried very hard to provide everything you need. if i've failed to do so, please feel free to ask me any questions you have.
Thank you in advance for any guidance/solution that you may be able to provide.
Comment