Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Update Where clause in Dynamic Input tool

monish_chandra
8 - Asteroid

I'm trying to update the complete WHERE clause in the dynamic Input tool with a text string. This works if a field is a integer, but for a varchar the dynamic input doesn't add quotes around the values. In the example shown below dynamic tool doesn't interpret the single quotes. Can you please let me know if there is an alternative to replace the where clause which is currently 1=1 with ProcedureCode LIKE 'A1%'

 

WHERE ProcedureCode LIKE 'A1%'

 

Error:

Error: Dynamic Input (1): Error opening "Select * From TEMP Where ProcedureCode LIKE ''A1%''": No Columns Returned.

 

Expected query to be formed and executed by dynamic Input tool:

Select * From TEMP Where ProcedureCode LIKE 'A1%'

 

1 REPLY 1
patrick_digan
17 - Castor
17 - Castor

@monish_chandra  I would change the dynamic input tool to replace a specific string instead of updating the where clause.

 

Capture.PNG

Labels