In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Using In-DB tools on 2 databases

alexlyle
8 - Asteroid

I know it's not possible to use IN-DB tools to join 2 databases. But, I think it might be possible to do what I am after with a macro and I'm wondering if someone could guide me with it. Database1 has 100 records coming out. Let's call the field trans_id.

I want to take those 100 trans_id's and update the where clause in my query for Database2 similar to how I might use a textbox or dropdown app tool. Does anyone have any thoughts on this? Thanks

1 REPLY 1
apathetichell
20 - Arcturus

I do this all of the time. I use dynamic input in-db - wherein I take the output of db 1 via datastream in - use a summarize tool and some formula tool magic - add that to a text input of a base query - use another summarize tool - and then use dynamic input in-db to create a SQL query with a dynamic large query with a WHERE clause source from another DB.

 

Note - I use fieldname IN(...,...) - to construct my clause.

 

I posted some info on this in this thread: https://community.alteryx.com/t5/Orange-County-CA/Orange-County-Alteryx-Q3-User-Group-Meeting/ec-p/9...

Labels
Top Solution Authors