Hi,
I have one below requirement in ssis i need to develop the package.
Customer TblStaging Table Detail
(Source Srvr)
----------------------------------- ------------------
CustomerIDCustID CustID
NameStaffID Name
In the above staging table, CustID and StaffId will have some similar values as in CustomerID coln in CustomerTable(Source Srvr).
To check the customerid is same in the staging table custid then i need to pick the customerid and its name to destination table.
Customer: Staging Table Detail Table
1. CustomerID -----> CustID ------------> CustID and Name
& Name
To check the customerid is same in the staging table staffid then i need to pick the relevant customer id and its name to destination table.
2. CustomerID------->Staffid---------------> CustID and Name
& Name
I have used the below logic,
1. Oledb source
select Customerid,Name from customer
2.Lookup
Select custid,staffid from Staging
In columns, matching customerid with custid only
fetching only Matching records
3. Lookup
Select custid,staffid from Staging
In columns, matching staffid with custid only
fetching only Matching records
4.Oledb Destination
Mapping customerid and full name
Please suggest me if i did anything wrong or tell me any better way to do it.
Thanks,
Lucky