Professional Documents
Culture Documents
htm
Scenario and Solutions
Sol:
Sequence Generator
Source
First_Name Last_Name
Vijay
Jaiswal
Kuldeep
Solanki
Lalsingh
Bharti
Poornaya
Cherukmala
Rajeev
TK
http://learninformaticaonline.com/infa_int_qns.htm
Target (o/p)
First_Name Last_Name
Vijay Jaiswal
Kuldeep Solanki
Lalsingh Bharti
Poornaya Cherukmala
Rajeev TK
Solution:
Option1
You can assign serial number to Source data,then group by serial number and take write to target
Expression
Use expression to assign the same serial number to first_name and last_name
http://learninformaticaonline.com/infa_int_qns.htm
Sl First_Name Last_Name
1 Vijay
1 Jaiswal
2 Kuldeep
2 Solanki
3 Lalsingh
3 Bharti
4 Poornaya
4 Cherukmala
5 Rajeev
5 TK
Aggregator
Group by SL.As per aggregator property null values are ignored ,use max or min function to get name
combination
http://learninformaticaonline.com/infa_int_qns.htm
In Data mart records are loaded on the same date 4:00 PM, records should be loaded as below
Solution:
If you u use static lookup then for srini Reddy only one record will be loaded.Because lookup will return only one value
http://learninformaticaonline.com/infa_int_qns.htm
First Name Last Name Address Effective date End date
Srini Reddy Cegedim, Bangalore 01-01-2011 14:00:00
Tarun Tanwar Capgemini, US 01-01-2011 14:00:02
Dev Jain Symphony, Bangalore 01-01-2011 14:00:05
O/P
Solution:
Port Master/Detail
Family_id Detail
Tot_Sal Detail
Person_id Master
Family_id Master
Person_name Master
Sal Master
Family_id1=family_id
Port Epression
Contribution (sal/Tot_sal)*100
How to separate the duplicate in 1 target and unique only to another target
1|Piyush|Patra|
2|Somendra|Mohanthy
3|Santhosh|bishoyi
1|Piyush|Patra|
2|Somendra|Mohanthy
http://learninformaticaonline.com/infa_int_qns.htm
O/P
File1
1|Piyush|Patra|
2|Somendra|Mohanthy
File2
3|Santhosh|bishoyi
Solution:
I/P
ID Month Sales
1 Jan 100
1 Feb 120
1 March 135
2 Jan 110
2 Feb 130
2 March 120
http://learninformaticaonline.com/infa_int_qns.htm
O/P
Ans:
Use the aggregator group by ID and use First function
FIRST(AMOUNT, MONTH='JAN')
FIRST(AMOUNT, MONTH='FEB')
FIRST(AMOUNT, MONTH='MAR')
O/P
ID Month Sales
1 Jan 100
1 Feb 120
1 March 135
2 Jan 110
2 Feb 130
2 March 120
In Normalizer tab add two ports ID and Sales.for sales put occurs=3
http://learninformaticaonline.com/infa_int_qns.htm
When for sales occurs =3 is given that time in ports sales_in1,sales_in2,sales_in3 will appear.
Connect Jan_sales->sales_in1
Feb_sales->sales_in2
Mar_sales->sales_in3
Use the expresion to identify month
GCID_Sales=GCID_Sales
Month =IIF(GCID_Sales=1,'JAN',IIF(GCID_Sales=2,'FEB','MAR'))