In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Extract Values Surrounded by Quotes

Jucodeo
5 - Atom

Hello Alteryx Community,

 

I am trying to parse out queries to obtain the pulled fields. The fields will always be surrounded by single quotes. I tried parsing a quote as a delimiter, which seemed to work. However, I also retrieved additional parts of the query, such as IF, FROM, and EQUALS clauses. Is there a way to retrieve the field names? 

 

Here is an example. I would only like to retrieve the green values in the 'Fields' column.

QueryFields
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-02Select
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-03Employee
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-04Like TEST and
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-05Report Number
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-06and
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-07Payment Date
Select 'Employee' Like TEST and 'Report Number' and 'Payment Date' From 2024-01-01 To 2024-01-08From 2024-01-01 To 2024-01-02

 

 

1 REPLY 1
vizwithdan
8 - Asteroid

Hi Justin,

 

Try the attached and let me know if that makes sense. 

 

Thanks

Danny

Labels
Top Solution Authors