September 24, 2010 at 11:52 am
Hello,
Can anybody please tell me how to have an output on multiple file from a single query based on the result.
For example,
If I have a query:
SELECT Name, Address FROM Customer WHERE Name='JOHN' OR Name='BEN'
Now, I want to output the results for two customers in their specific file i.e. JOHN_FILE and BEN_FILE.
Please let me know, what transformation would I have to use?
September 24, 2010 at 1:17 pm
hasan.askari (9/24/2010)
Hello,Can anybody please tell me how to have an output on multiple file from a single query based on the result.
For example,
If I have a query:
SELECT Name, Address FROM Customer WHERE Name='JOHN' OR Name='BEN'
Now, I want to output the results for two customers in their specific file i.e. JOHN_FILE and BEN_FILE.
Please let me know, what transformation would I have to use?
Use a DataFlow with a Condition Split that checks for Name = John or Name = Ben. Direct one output from the Condition Split to the John file and the other to the Ben file.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
September 24, 2010 at 2:05 pm
Alvin Ramard (9/24/2010)
hasan.askari (9/24/2010)
Hello,Can anybody please tell me how to have an output on multiple file from a single query based on the result.
For example,
If I have a query:
SELECT Name, Address FROM Customer WHERE Name='JOHN' OR Name='BEN'
Now, I want to output the results for two customers in their specific file i.e. JOHN_FILE and BEN_FILE.
Please let me know, what transformation would I have to use?
Use a DataFlow with a Condition Split that checks for Name = John or Name = Ben. Direct one output from the Condition Split to the John file and the other to the Ben file.
Thanks Alvin. That helped.
September 24, 2010 at 2:08 pm
You're welcome.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply