0% found this document useful (0 votes)
59 views

Assignment 3

The document describes scenarios for loading data from source tables and files into target tables and files. There are 11 source-to-target loading scenarios described involving different transformations like lookups, aggregations, sorting. It also describes scenarios using data-driven features for incremental loads based on source changes.

Uploaded by

Sam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

Assignment 3

The document describes scenarios for loading data from source tables and files into target tables and files. There are 11 source-to-target loading scenarios described involving different transformations like lookups, aggregations, sorting. It also describes scenarios using data-driven features for incremental loads based on source changes.

Uploaded by

Sam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment-3

List of sources:

Source table: EMP( empid, ename, salary, deptno)

Source Flat file: DEPT (Deptno, Dname,Location)

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_2(Location,Tot_salary, Avg_sal)

Target table : TGT_3(Deptno, emp_count)

Target Flat file: TGT_4( Eid, Ename, Address, Salary)

Target table: TGT_5 (empid, ename, sal, deptno, deptname) Note: In this table there is no primary key

Target table : TGT_6 ( SerialNo, salary)

Target table: TGT_7 (SerialNo, Deptno, Sal)


Scenario-1

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

Select bottom 5 salaries and load into TGT_6 table.

Scenario-10

Select highest salary for each department and load into TGT_7

Scenario-11

Load data from EMP_Details source into TGT_4 Target.

Port mapping requirement is mentioned in below table:

Source ports Target ports


empid Eid
Fname Ename
Lname Ename
Country Address
State Address
City Address
Salary Salary

Scenario-12 to 16

Load data from sources into TGT_1 using data driven feature in session property.

Whenever we run session then following operations should be performed:

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.

You might also like