I have an employee
table with an employee_id
, name
, and working_division
, where the employee_id
is the primary key. I have an Excel source with these columns and more where an employee has entered their hours, and what type of work they have done, what division of the company it was for and so forth..
So for any given day an employee I could have multiple rows showing their type of work, what division they worked for, and their charged hours to that division.
How do I get this into the OLE DB in which the employee_id
is the primary key?
I am trying to use the aggregate transform to group by the employee_id
, however the employee_id
and working_divisions
are not one-to-one. Thus, the group by operation on both of those columns will try to insert the same employee_id
into the employee
table (the employee_id
is the primary key!) If I do not include the working_division
for the aggregate transform, then I lose the data.
How can I group my data by the employee_id
, and still keep all the other columns with that row?
Thanks for all the help!