In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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