|
|
|
|
|
- Overview
- How to?
- Modifying the sequence of selection conditions in a select query
- Modifying the sequence of selection conditions in an update query or in a delete query
- Modifying the sequence of selection conditions from the graphic representation of the query
Sequence of selection conditions for a query
When at least two selection conditions are found in a query, the sequence of selection conditions must be specified by the conditional operators AND and OR: - Conditional AND operator: the selected records will match both conditions. For example, select the customers whose name starts with the letter "A" AND who live in London.
- Conditional OR operator: the selected records will match one of the two conditions or both conditions. For example, select the customers who live in London OR in New York.
| | Conditional AND operator |
Conditional OR operator |
The sequence of selection conditions is defined when creating the query. However, this sequence can be modified. Two methods can be used to modify the sequence of selection conditions in the current query: - 1st method: via the description window of query.
- 2nd method: from the graphic representation of query.
Modifying the sequence of selection conditions in a select query To modify the sequence of selection conditions in the current select query via the description window of the query: - Right-click to open the context menu of the query and select "Query description". The query description window appears.
- Click the "Selection condition" button and select "Existing conditions".
- Modify the sequence of selection conditions.
- Validate. The modification is automatically performed in the query.
Modifying the sequence of selection conditions in an update query or in a delete query To modify the sequence of selection conditions in the current update or delete query via the description window of the query: - Right-click to open the context menu of the query and select "Query description". The query description window appears.
- Select the "And/Or" tab.
- Modify the sequence of selection conditions.
- Validate. The modification is automatically performed in the query.
Modifying the sequence of selection conditions from the graphic representation of the query To modify the sequence of selection conditions in the current query via the graphic representation of the query: - Select the selection condition whose sequence must be modified in the graphic representation of the query.
- Right-click the current selection condition and select "Reverse AND/OR" in the context menu.
- The new sequence of selection conditions is automatically applied to the query.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|