Hi all,
Let me start by saying I am way over my skis here but I can't help myself... this is what happens when you give a business guy Alteryx and he has one last step to saving 1,200 plus labor hours a year for a routine.
I need to create a dynamic SQL query (that statement alone makes me chuckle considering where I was 3 months ago). I have staged the data so all I need to do is combine each of the rows [Formula2] (and I can input into the dynamic input tool. The catch is that the or statements may fluctuate. I can have as few as 2 or dozens. My data looks like this ( I know it's not elegant - still mastering the cleaver before the scalpel):
| RecordID | Formula2 |
| 1 | select [Fun Stuff] where |
| 2 | (Statement A) |
| 3 | OR |
| 4 | (Statement  |
| 5 | OR |
| 6 | (Statement C) |
| 7 | OR |
| 8 | (Statement D) |
| 9 | OR |
| 10 | (Statement E) |
| 11 | OR |
| 12 | (Statement F) |
I want it to look like this, " select [Fun Stuff] where (Statement A) OR (Statement
OR (Statement C) OR (Statement D) OR (Statement E) OR (Statement F)"
I can solve this if I have a fixed number of or statements but the variability is throwing me off.
Thanks so much!