Range Conditions Oracle Fusion Middleware Online Documentation Library

6-8 Oracle Complex Event Processing CQL Language Reference between_condition::= arith_expr::= on page 5-6 Table 6–9 describes the range conditions.

6.6 Null Conditions

A NULL condition tests for nulls. This is the only condition that you should use to test for nulls. null_conditions::= Chapter 5, Expressions Table 6–10 lists the null conditions.

6.7 Compound Conditions

A compound condition specifies a combination of other conditions. compound_conditions::= Table 6–9 Range Conditions Type of Condition Operation Example BETWEEN x AND y Greater than or equal to x and less than or equal to y. query id=Q1[CDATA[ SELECT FROM S0 WHERE salary BETWEEN 2000 AND 3000 ]]query Table 6–10 Null Conditions Type of Condition Operation Example IS [NOT] NULL Tests for nulls. See Also: Section 2.6, Nulls query id=Q1[CDATA[ SELECT last_name FROM S0 WHERE commission_pct IS NULL ]]query query id=Q2[CDATA[ SELECT last_name FROM S0 WHERE commission_pct IS NOT NULL ]]query Conditions 6-9

6.8 IN Condition

You can use the IN and NOT IN condition in the following ways: ■ in_condition_set : Section 6.8.1, Using IN and NOT IN as a Set Operation ■ in_condition_membership : Section 6.8.2, Using IN and NOT IN as a Membership Condition When using the NOT IN condition, be aware of the effect of null values as Section 6.8.3, NOT IN and Null Values describes.

6.8.1 Using IN and NOT IN as a Set Operation

See BINARY Example: IN and NOT IN on page 20-17.

6.8.2 Using IN and NOT IN as a Membership Condition

In this usage, the query will be a SELECT-FROM-WHERE query that either tests whether or not one argument is a member of a list of arguments of the same type or tests whether or not a list of arguments is a member of a set of similar lists. in_condition_membership::= arith_expr::= on page 5-6, non_mt_arg_list::= on page 7-20, non_mt_arg_list_set::= on page 6-9 non_mt_arg_list_set::= non_mt_arg_list::= on page 7-20 When you use IN or NOT IN to test whether or not a non_mt_arg_list is a member of a set of similar lists, then you must use a non_mt_arg_list_set. Each non_mt_ arg_list in the non_mt_arg_list_set must match the non_mt_arg_list to the left of the condition in number and type of arguments. Consider the query Q1 in Example 6–1 and the data stream S0 in Example 6–2 . Stream S0 has schema c1 integer, c2 integer. Example 6–3 shows the relation that See Also: Section 6.3, Logical Conditions for more information about NOT, AND, and OR conditions Note: You cannot combine these two usages. Note: You cannot combine this usage with in_condition_set as Section 6.8.1, Using IN and NOT IN as a Set Operation describes.