Search This Blog
Showing posts with label Normalizer transformation. Show all posts
Showing posts with label Normalizer transformation. Show all posts
Tuesday, November 13, 2012
Tuesday, October 30, 2012
How will you approach this : 2
Input :
Output :
| Student Name | Maths | Life Science | Physical Science |
| Sam | 100 | 70 | 80 |
| John | 75 | 100 | 85 |
| Tom | 80 | 100 | 85 |
Output :
| Student Name | Subject Name | Marks/Avg Marks |
| Sam | Maths | 100/85 |
| Sam | Life Science | 70/90 |
| Sam | Physical Science | 80/83.33 |
| John | Maths | 75/85 |
| John | Life Science | 100/90 |
| John | Physical Science | 85/83.33 |
| Tom | Maths | 80/85 |
| Tom | Life Science | 100/90 |
| Tom | Physical Science | 85/83.33 |
Wednesday, October 3, 2012
Aggregating without using Aggregator Transformation
In informatica level the aggregator transformations output can be obtained by replacing it with the following transformations
1) Sorter transformation -- Used to sort the data asc/dec
2) Expression Transformation -- basic transformation used almost in all the mappings
3) Filter Transformation -- To obtain the records with specific condn.
Aggregator transformation will reduce the number of records by aggregating on some specific columns given by us .
The Reverse transformation of Aggregator is Normalizer Transformation which will increase the number of Records.
1) Sorter transformation -- Used to sort the data asc/dec
2) Expression Transformation -- basic transformation used almost in all the mappings
3) Filter Transformation -- To obtain the records with specific condn.
Aggregator transformation will reduce the number of records by aggregating on some specific columns given by us .
The Reverse transformation of Aggregator is Normalizer Transformation which will increase the number of Records.
Monday, October 1, 2012
How will you approach this : 1
Input :
Output :
| Name | Year | Transport | House Rent | Food |
| Sri | 2000 | 200 | 1500 | 500 |
| Uma | 2000 | 300 | 1200 | 300 |
| Ragu | 2000 | 300 | 1350 | 350 |
| Sri | 2001 | 300 | 1550 | 450 |
| Uma | 2001 | 350 | 1200 | 290 |
| Ragu | 2001 | 350 | 1400 | 350 |
Output :
| Name | Year | Expense Type | Expense |
| Sri | 2000 | Transport | 200 |
| Sri | 2000 | House rent | 1500 |
| Sri | 2000 | Food | 500 |
| Uma | 2000 | Transport | 300 |
| Uma | 2000 | House rent | 1200 |
| Uma | 2000 | Food | 300 |
| Ragu | 2000 | Transport | 300 |
| Ragu | 2000 | House rent | 1350 |
| Ragu | 2000 | Food | 350 |
Scenario 2
Here we have a scenario to get the below mentioned output from the given input. Let us see how to solve this scenario :
Input
Employee name Basic DA HRA MedicalA FoodA
John 5000 200 1000 500 500
George 6000 100 800 500 200
Carol 3000 700 700 800 900
Output Required :
Employee name Salary_type Salary_Amt
John Basic 5000
John DA 200
John HRA 1000
John MedicalA 500
John FoodA 500
George Basic 6000
George DA 100
George HRA 800
George MedicalA 500
George FoodA 200
Carol Basic 3000
Carol DA 700
Carol HRA 700
Carol MedicalA 800
Carol FoodA 900
Answer :
1) The input from the Source has to be connected to Normalizer transformation .
2) In the normalizer transformation we will get two outputs ., One is Employee name and other is the Amount. The GCID number is also generated , which will give the salary type.
3) In this way the normalizer transformation generates transpose of the input(table).
4) The output from normalizer can be given to an expression transformation to get the Salary type which can be generated from GCID number.
It will be like
Employee name GCID Salary_Amt
John 1 5000
John 2 200
John 3 1000
John 4 500
John 5 500
George 1 6000
George 2 100
George 3 800
George 4 500
George 5 200
Carol 1 3000
Carol 2 700
Carol 3 700
Carol 4 800
Carol 5 900
4) Its an active transformation and the reverse of aggregator transformation which reduces the number of output.
Input
Employee name Basic DA HRA MedicalA FoodA
John 5000 200 1000 500 500
George 6000 100 800 500 200
Carol 3000 700 700 800 900
Output Required :
Employee name Salary_type Salary_Amt
John Basic 5000
John DA 200
John HRA 1000
John MedicalA 500
John FoodA 500
George Basic 6000
George DA 100
George HRA 800
George MedicalA 500
George FoodA 200
Carol Basic 3000
Carol DA 700
Carol HRA 700
Carol MedicalA 800
Carol FoodA 900
Answer :
1) The input from the Source has to be connected to Normalizer transformation .
2) In the normalizer transformation we will get two outputs ., One is Employee name and other is the Amount. The GCID number is also generated , which will give the salary type.
3) In this way the normalizer transformation generates transpose of the input(table).
4) The output from normalizer can be given to an expression transformation to get the Salary type which can be generated from GCID number.
It will be like
Employee name GCID Salary_Amt
John 1 5000
John 2 200
John 3 1000
John 4 500
John 5 500
George 1 6000
George 2 100
George 3 800
George 4 500
George 5 200
Carol 1 3000
Carol 2 700
Carol 3 700
Carol 4 800
Carol 5 900
4) Its an active transformation and the reverse of aggregator transformation which reduces the number of output.
Subscribe to:
Posts (Atom)

