Hi Team,
I'm currently developing a use case that involves executing multiple SQL queries, each with varying WHERE conditions. These conditions are dynamic and subject to frequent updates. I'm seeking a solution that allows users to choose any condition, input values for the WHERE clause, and execute the query. Examples are provided below, and any assistance would be greatly appreciated.
SELECT * FROM Employees WHERE Department = 'Sales';
SELECT * FROM Employees WHERE Department = 'Sales' AND Salary > 50000;
SELECT * FROM Employees WHERE Department = 'Sales' OR Department = 'Marketing';
SELECT * FROM Employees WHERE Department IN ('Sales', 'Marketing', 'HR');
SELECT * FROM Employees WHERE Salary BETWEEN 40000 AND 60000;
SELECT * FROM Employees WHERE HireDate > '2023-01-01';
For executing, the Dynamic Input tool will be easiest I would think. You can store these in a file as NAME:VALUE like such: