Hey there, fellow data pointers and workbookers! đ
If youâre anything like me, you spend a lot of time working with data, and sometimes, it feels like you need a magic wand to handle all those little details. Well, guess what? Iâve got a trick up my sleeve that will save you time and help you avoid those pesky mistakes when dealing with specific values.
In this post, Iâm going to show you one of my most used techniques in Toad Data Point 6.4âsetting variable values with a prompt variable listâand how it can make your data workflow a whole lot smoother.
The problem: Remembering the correct values
Weâve all been there. Youâre working with data, and thereâs a column full of values that are similar but not exactly the same. Letâs say youâre working with job titles â things like Software Engineer, Software Developer, and Senior Software Engineer. Theyâre close, but if you donât use the exact title in your query, you might miss some important results.
To get valid results, you need to remember the right title (and letâs be honest, who has time for that?) But donât worryâToad Data Point has your back!
The solution: Prompt variable lists
With Toad Data Point 6.4, you can create a prompt variable list that includes all the valid values for a specific variable. Whatâs amazing about this feature is that you donât have to remember or type out every valueâyou can select it directly from a list! This means no more guesswork, just clean and accurate results.
Letâs walk through the process
Hereâs how you can set this up in your queries:
1. Set up your query in the Query Builder
- First, pull in the tables/views you need for your query.

- Next, itâs time to set the Where condition. Iâll use the IN operator for the variable âJobTitle_variableâ because I need to select multiple values for my variable (like multiple job titles).

2.Define your variable
- Click on the Variables dialog from the Query Builder toolbar. This will show you all the variables for the current query. Besides the âJobTitle_variableâ, I have one more variable set on the Date field BirthDate, but Iâm working with it without a prompt list


- Note: In Toad Workbook, you will find the Variables icon (for opening the same dialog) on the left side in the Variables section:

- Find your variable in the Name column (in my case, itâs JobTitle_variable) and click on the variable name.

- In the Define the variable prompt values dialog, youâll have options to get the values from a specific column. Choose it, and from the dropdown column list, select the JobTitle column as your variable valueâs source.

3.Set additional options
- At the bottom of the dialog, youâll see two important options:
- Allow user to select multiple values: Check this box so you can select more than one value. This is important since Iâm using the IN operator, and I need to pick multiple job titles.
- Restrict variable value(s) only to list: Iâll leave this unchecked, meaning I can type in any value for that variable, or I can pick a value from a prompt list
- Click the OK button to confirm.
4.Set a default value (optional)
- Back in the Variables dialog, you can set a default value for the variable if youâd like. This will populate your variable with a value before running the query. But hereâs the cool part: Instead of manually typing a value, just click on the list icon for your variable. This opens your prompt listâthe one you created earlier!
- On this prompt list will be all values present in the column Iâve chosen in the step before
- Now, you can choose the exact values from the predefined list and be sure that you will get the correct results
- Since Iâve enabled multiselecting and have set the Where operator that supports it (IN operator), I can easily select multiple job titles.

5.Run your query
- When youâre ready to run your query, youâll see the Bind Variables dialog pop up. Here, youâll notice that your default value (the one you set earlier) is already pre-filled. I did not set the default value for the other variable (BirthDate_variable), and the Value field will be empty

- Here, again, I have access to the prompt list just by clicking the list icon, and that allows me to change the variable values for that run without changing the default value for that variable

- Note: If the default value is defined, on every query run, that value will be shown in the Bind variable dialog. To check what variable value is set for that run under the Results set tab, open the SQL statement part and scroll down

Voila! Accurate results every time
No more struggling to remember which job titles you need or typing them out manually. By simply selecting from the prompt list, youâll always get the right results without the hassle.
Why this makes a difference
This technique not only saves you time but also ensures that your queries are consistent and accurate. Whether youâre working with job titles, product names, or any other set of values, using a prompt variable list in Toad Data Point eliminates the risk of human error and streamlines your entire workflow.
So, next time youâre working on a query with specific variables, give this feature a try! Trust me, youâll wonder how you ever lived without it.
Happy querying! đ
If youâre ready to take your Toad Data Point experience to the next level, donât go it aloneâjoin the conversation! Visit our Toad World forums to connect with our team of experts and a vibrant community of users. Whether you have a question, want to share tips, or just want to see how others are solving similar challenges, youâll find the insight and support you need.
Take Toad Data Point for a spin today!
Unlock a full trial version of Toad Data Point Professional that contains both the traditional and workbook interfaces.
