Defining a Filter Expression

The Operator and Expression columns are used in multiple dialog boxes to filter a query.

The following operators are available

Operator

Description

=

[default] Equal to

>

Greater than

>=

Greater than or equal to

<

Less than

<=

Less than or equal to

Not Equal

Different from

In List

Belongs to the list. For example "global", "Architecture", "proc*" finds any of these values.

Not In List

Does not belong to the list.

Between

In a range between two values. For example, (A,E) finds any values between A and E.

Not Between

Outside a range of two values. For example, (A,E) finds any values outside of the range between A and E.

Empty

Has no value. No expression is necessary with this operator.

Not Empty

Has a value. No expression is necessary with this operator.

You can use the following wildcards in the Expression column:

Wildcard

Description

*

Any string (from none to any number of characters). For example P* finds "protocol" and "Paris".

?

Any character. For example ????? finds "Table" and "inner" but not "Seller".

\

Escapes the special characters *, ?, and \ . For example, \?\\ finds "?\".

Examples

The following examples show some possible combinations of operators and expressions:

Operator

Expression

Find

=

W*

Work, Washington

=

*CODE

AREA CODE, COUNTRY CODE, CITY CODE

>

1??

200, 405, 609

Between

O,8

0,1,2,3,4,5,6,7,8

In List

*_emp_???, *_grp_???

div_emp_fun, _emp_idn, div_grp_fun, _grp_idn

=

*\?

Is this book ready for production?