Background information
You can expand or narrow the scope of your query by including several data columns as part of your search condition. For example, you might want to:
To create a query that searches for values in either of two (or more) columns, you specify an OR condition. To create a query that must meet all conditions in two (or more) columns, you specify an AND condition.
Specify an OR Condition
To create multiple conditions linked with OR, you put each separate condition in a different column of the Grid pane.
The Query Designer creates a WHERE clause that contains an OR condition such as the following:
SELECT job_lvl, hire_date
FROM employee
WHERE (job_lvl >= 200) OR
(hire_date < '01/01/90')
Specify an AND Condition
To search different data columns using conditions linked with AND, you put all the conditions in the Criteria column of the grid.
The Query Designer creates a WHERE clause that contains an AND condition such as the following:
SELECT pub_id, title
FROM titles
WHERE (pub_id = '0877') AND (title LIKE '%Cook%')