Data Rule using SQL 'IN' logic

This forum contains ProfileStage posts and now focuses at newer versions Infosphere Information Analyzer.

Moderators: chulett, rschirm

Post Reply
sohasaid
Premium Member
Premium Member
Posts: 115
Joined: Tue May 20, 2008 3:02 am
Location: Cairo, Egypt

Data Rule using SQL 'IN' logic

Post by sohasaid »

Hi,

I want to implement the SQL 'IN' logic using a data rule in IA.

The business case is:

Inputs:
- An account has more than one asset.
- Account and asset both have a status.

Required:
- If the account status is active, and at least one asset has an 'Active' status, then the rule is satisfied, else the rule is violated.

Example:

Account data;
Account key, Status
Act1, Active

Asset data:
Asset Key, Status, Account Key
Ast1, Active, Act1
Ast2, Deactived, Act1
Ast3, Suspended, Act1

Based on this example, the rule should be satisfied otherwise it's violated. How to do this in IA?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For a small enough list of asset data, use in_reference_list check. For larger list use in_reference_column. Use a virtual table in IA to establish the "join".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply