I have a table from SQL in-DB coming in and I want to create a new field with a formula. However in this formula, I am referencing another table and I do not know how to do that using in-DB alteryx tools. Here is an example of the SQL query I am trying to convert to Alteryx:
select
case when (Select code from TableA a where a.id = b.id) = "AAA") = 'A'
when (Select code from TableC c where c.id = b.id) = "CCC") = 'C'
from TableB b
This is a very simple example and might not make 100% sense, but the point is I'm not sure how to reference things from another table like TableA and TableC when writing a formula for a new field in TableB.
Thanks