Dynamic SQL Query Selection
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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';
- Labels:
- Dynamic Processing
- In Database
- Input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
For executing, the Dynamic Input tool will be easiest I would think. You can store these in a file as NAME:VALUE like such:
