Data Rules in IA
Posted: Wed Dec 01, 2010 10:52 am
Hi,
I have a query with joins on 4 tables and a couple of filter conditions. The query returns 5 columns as output and has a count(distinct(colA)) as one of the output columns. I am trying to implement this query using Data Rules functionality in IA and I was able to replicate the joins and filter conditions but not count(distinct(colA)) .
When I try to Generate Rule using a Data Rule definition, I can only use count function on the columns that are defined in the Rule definition but I cannot use the count function on any of the columns from the data source list. If I have to define count(colA) function in the rule definition, the count function must be associated with one of the conditions like > or < or >= or <=.
Can someone suggest if there is a better way of doing this? Datastage is not a option here. This should be done using Data Rules functionality only. That is the requirement.
Thanks in advance.
I have a query with joins on 4 tables and a couple of filter conditions. The query returns 5 columns as output and has a count(distinct(colA)) as one of the output columns. I am trying to implement this query using Data Rules functionality in IA and I was able to replicate the joins and filter conditions but not count(distinct(colA)) .
When I try to Generate Rule using a Data Rule definition, I can only use count function on the columns that are defined in the Rule definition but I cannot use the count function on any of the columns from the data source list. If I have to define count(colA) function in the rule definition, the count function must be associated with one of the conditions like > or < or >= or <=.
Can someone suggest if there is a better way of doing this? Datastage is not a option here. This should be done using Data Rules functionality only. That is the requirement.
Thanks in advance.