Inserting global variables into SQL queries
In an SQL query you can reference objects and create conditions for selecting data fields. By combining the search criterion WHERE with a variable, the content of the variable is used as the search string.
To insert a global variable into an SQL query: