Database Toolbox |
Condition
In the Where Clauses dialog box, after selecting an item from Fields, select the Condition that restricts the query results for that item. Complete the fields in the Where Clauses dialog box for the condition you selected.
The conditions you can select are:
After selecting the condition, specify an Operator to add other conditions, or click Apply to create the where clause.
Relation
=
, <
, >
, >=
, <=
, and <>
(not equal to).
Examples of Relation Condition. This example restricts results to where the value for the selected field (such as the stock number) is greater than 400000.
This example equates the stockNumber
from productTable
with the StockNumber
from the salesVolum
e table.
Between
Example of Between Condition. This example restricts results to where the value for the selected field (such as the stock number) is greater than 400000 and less than 500000.
In
Example of In Condition. This example restricts results to where the value for the selected field (such as the supplier's country) is Ireland or Northern Ireland.
Is Null
For Condition, select Is null to restrict results to those where the value for the specified field is NULL
.
Like
%
wildcard to represent any number of characters, or an underscore ( _
) for any single character.
Example of Like Condition. This example restricts results for the selected field (such as the supplier number) to those ending in the 50s.
See Also
Fields | Operator |
© 1994-2005 The MathWorks, Inc.