Exclude rows
Use the relational operators != or <> to exclude rows in a WHERE clause.
The following query assumes
that you are selecting from an ANSI-compliant database; the statements
specify the owner or login name of the creator of the customer table.
This qualifier is not required when the creator of the table is the
current user, or when the database is not ANSI compliant. However,
you can include the qualifier in either case. For a detailed discussion
of owner naming, see the HCL OneDB™ Guide to SQL:
Syntax.
Both statements in the query exclude values by specifying
that, in the customer table that the user odin owns,
the value in the state column should not be equal to
CA
,
as the result shows.