How To Implement "Group By" and "Having" Clause in ODI - ODI PDF
How To Implement "Group By" and "Having" Clause in ODI - ODI PDF
– ODI
ODI
Oracle Data Integrator
Hi folks,
To day I am gonna explain one requirement asked by one of my blog follower in detail
how to implement Group By and Having in ODI?
Before going to implement this in ODI I will explain Group By and Having functionality
.
GROUP BY:
1. Group By is mainly used to group the individual records and we can divide then
into groups
2. In ODI,if we want to implement group by class then we have to make use of any
“Group Function”.
3. Group function applied only on number columns.
4. The different group functions or aggregate functions that are available:
Sum
Avg
Max
Min
Count
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 1/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
Variance
Standard Deviation.
After explaining Having clause I will explain how we can achieve same in ODI?
HAVING:
1. After grouping data,if we want to perform filtering on the grouped records then we
have to make use of the”Having clause”.
2. Without “having clause” the group by can exist but the existence of having demands
group by
Now here I want to display the average salary is greater than 1500 by job wise.
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 2/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
Group By
Step: 2
Go To Mappings Tab &Go To Models
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 3/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
While mapping to target SAL column map with AVG(SAL) in expression editor as
shown in above.
Now go to flow select appropriate KM and select options based on your requirement.
Once complete click on save.Now click on execution button you will get one pop up
as shown below
click on OK.
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 4/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
In code you can observe group by clause.That’s all to implement group by.
Group By implementation
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 5/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 6/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
Best Regards
Venkat Maguluri
Advertisements
₹ 130 ₹ 40
REPORT THIS AD
Advertisements
REPORT THIS AD
Share this:
Like
Be the first to like this.
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 7/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
In "ODI"
In "Designer"
How to reflect changes made in one environment to other the environment using ODI?
In "Designer"
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 8/9
12/4/2019 How to implement “Group By” and “Having” clause in ODI? – ODI
REPORT THIS AD
https://odielt.wordpress.com/2016/06/04/how-to-implement-group-by-and-having-clause-in-odi/ 9/9