Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

count distinct values in Oracle

Hello,

To count distinct value i used the component tAggregateRow but the volume of my table(11 millions) is huge so it takes a lot of time to finish the job.

So I want to put the query

"select A, count (distinct A) from C

group by A" in talend. 

Any one could help me with this ?

Thanks 

ledoan

 

Labels (1)
1 Solution

Accepted Solutions
TRF
Champion II

You can use tOracleInput component with the following query:

select A, count (distinct B) countB from C group by A

You must a Talend schema with 2 fields for the tOracleInput component:

- A, to get the value of A

- countB, to get the count of B for each A group

View solution in original post

3 Replies
TRF
Champion II

select count(*), A from C group by A
Anonymous
Not applicable
Author

Sorry, it has the error in my query. 

My query is 

"Select A, count (distinct B) from C

group by A"

 

which component that i can execute my query in talend

 

TRF
Champion II

You can use tOracleInput component with the following query:

select A, count (distinct B) countB from C group by A

You must a Talend schema with 2 fields for the tOracleInput component:

- A, to get the value of A

- countB, to get the count of B for each A group