Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional insert into a Target

Status
Not open for further replies.

sa0309

Programmer
Apr 5, 2010
45
US

I'm needing to insert a row into a target an oracle table based upon a row count being passed from my SQ.

SQ:
COLUMN NAME: COUNT_OUT
Properties: Sql Query Attribute: select count(*) from TAB_A as COUNT_OUT

If COUNT_OUT > 240
insert a row into ORATAB
else
Do nothing

Is there a "conditional" transformation or what would be the best method? I hope this make sense.

Thank you in advance for an thought and suggestions.

 
I see two possibilities...

One - pass the row thru a Router Transformation using a filter of count. to continue the record on.

Two - Use a SQL Override in the Target Map to insert the row if the count is what you want it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top