Join using OR
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
sxyedur
5 - Atom
‎08-09-2023
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I was wondering if there is a way to join two tables in a workflow together but have an OR statement of some sort?
My current SQL code follows this logic:
Table1
Left Join Table2
ON Table1.Field1 = Table2.Field1
left join Table3
ON Table1.Field2 = Table3.Field1 OR Table2.Field2 = Table3.Field2
Thank you!
Labels:
- Labels:
- Community
- Search Feedback
2 REPLIES 2
17 - Castor
‎08-09-2023
06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @sxyedur
There's not a native way to do to this. What you'd probably need to do is something like this:
- 1 join tool on table 1 and table 2
- Join resulting J output to table 3 based on field 1
- Join any fall outs on field 2
- Union the results
17 - Castor
‎08-09-2023
07:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you can provide some sample data, we can show you better via Alteryx @sxyedur
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
