Create a custom SQL query by using the columns and filter conditions given in the excel
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
KustumB
5 - Atom
11-01-2022
08:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alteryx community,
I have a requirement to create a custom SQL query based on the list of columns and filter conditions given by the user in the excel sheet. Please find the example below. I have to generate a SQL query using Alteryx as select age, name, gender from employee table where age>30 and name = 'kust' and gender = 'F'.
| column names | Filter conditions |
| Age | age > 30 |
| Name | name = 'kust' |
| Gender | gender = 'F' |
Highly appreciate any help. Thanks in advance.
Labels:
- Labels:
- Interface Tools
2 REPLIES 2
Felipe_Ribeir0
16 - Nebula
11-02-2022
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @KustumB
You can adapt the attached workflow to do it
1)Use the dynamic input tool with a query looking at the table and with the filter values to be replaced:
2)Configure the replacement of the filters in the dynamic input tool:
Felipe_Ribeir0
16 - Nebula
11-08-2022
08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
