Hi all,
I am trying to re-create an SQL query in a workflow that needs to meet three requirements for a customer to be eligible for a discount however I am struggling with how to structure this query:
- Customer has to have an Amazon code voucher attached to their initial purchase
- Has to have paid 3 consecutive months on highest tariff(no downgrade)
- Has to be a live customer
Below is the code I am trying to replicate into a workflow. My initial approach to this is to segment each SELECT statement into separate Input Tools, filter and then join at the end(see workflow below)


Any help would be much appreciated