I have the following code.
INSERT INTO [dbo].[Employees_Dim] ([EmpNo], [EmpName])
SELECT DISTINCT st.[EmpNo], [EmpName]
FROM [dbo].[EEMasterData] st
I want to take two columns out of a master table to create an Employee Dimension. (this will be duplicated for other dimensions coming from this master table).
I want to be able to run the script in an SSIS package that will look at the master data, reference the Employee_Dim and only add new employees based on their Employee Number.
I know I'm missing something just don't know what.
Update: The question I have is, What should I add to the above Script that would Insert only the newly added employees from the EEMasterData table into the EmployeeDim using the EmpNo as the Key.