Hello, All:
I am trying to replicate the WHERE EXISTS functionality of SQL within Alteryx. I have at least two situation for which I could use this.
The first situation is during a UNION. I want to append dataflow #2 to dataflow #1 if the key value of #2 does not exist in #1. After #1 and #2 are combined into a single data set, I may need to append a third data flow only if the key value in #3 does not exist in of aforementioned combined data set. I do not want the key value to appear more than once in my final data set.
The second situation involves selecting/updating records from table #1 based on the contents of table #2. For example, in the statement below, I want the names of customers who had orders during 2016.
select c1.customer_number
,c1.customer_name
from customers c1
where 1 = 1
and exists (select *
from customer_orders c2
where 1 = 1
and c1.customer_number = c2.customer_number
and c2.order_year = 2016
)
;
Thank you, much.
Jeff