Assignment 3
Assignment 3
List of sources:
Source Flat file: EMP_Details ( empid, Fname, Lname, Country, State, City, Pin code, Salary)
List of targets:
Target table : TGT_1 (empid, ename, sal, deptno, deptname) Note: empid is primary key
Target table: TGT_5 (empid, ename, sal, deptno, deptname) Note: In this table there is no primary key
Load data from sources into TGT_1 using connected Lookup on DEPT Flat file
Scenario-2
Load data from sources into TGT_1 using unconnected Lookup on DEPT Flat file
Scenario-3
Load data from source tables into TGT_1 table and allow only those records to load into target for which
deptno is 10. (Lookup is mandatory)
Scenario-4
Load data from sources into target table TGT_5 using Active and connected Lookup.
Note: Check in checkbox for option "Return All Values on Multiple Match" while creating the lookup to
make it active.
Note: Connected means which is connected to pipeline and Active means which can change the
number of rows input and number of rows output from it.
Scenario-5
Load data from sources into target table TGT_5 using Active and unconnected Lookup.
Note: Check in checkbox for option "Return All Values on Multiple Match" while creating the lookup to
make it active.
Scenario-6
Load data from sources into TGT_2 which should store total salary for each location and try to load
Avg_sal also in same table.
Scenario-7
Load data from sources into TGT_3 which should store total employees working in each department
Scenario-8
Select top 5 salaries from EMP source and load into TGT_6 table.
Scenario-9
Scenario-10
Select highest salary for each department and load into TGT_7
Scenario-11
Scenario-12 to 16
Load data from sources into TGT_1 using data driven feature in session property.
12. It should inset a new record into the target whenever a new record is inserted into the source
13. It should update existing record into the target whenever any record is updated in source.
14. Try to perform update operation without declaring primary key in target.
15. As there is no primary key in source. So, Insert a duplicate record in source table and then run
the session and try to track that where this record goes when forward rejected records is
checked in Update strategy.
And try to load these rejected records in a flat file located at your desktop.
16. Try to implement logic in update strategy just to Insert record into target table (if not exists in
target) or delete record from target (if deleted from source). Note- as of now don’t consider
dd_update in this particular scenario.