Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This section lists the types of conditions. In its simplest form, a condition is used to test the existence of a condition, between two expressions. Conditions can be divided into comparison conditions, logical conditions, XML conditions, and object collection conditions. Table 4.2 shows the types of conditions, including descriptions and examples.
| Condition | Condition Information |
|---|---|
| Comparison Conditions | Comparison conditions are primarily used in a WHERE clause (see Chapter 3). Comparison conditions are used to compare the values of two expressions:
|
| Logical Conditions | Logical conditions are primarily used in a WHERE clause (see Chapter 3) and allow combining or merging of multiple expressions to find a Boolean result based on whether either expression or both expressions yield a true result:
|
| XML Conditions | An XML document contains a hierarchical or upside-down treelike structure.
Syntax: <expression> = EQUALS_PATH
Syntax: <expression> = UNDER_PATH ( <column>, <path> [, <n>]) |
| Object Collection Conditions | Tests the type of an object (see Chapter 11). |
| Syntax: | |
| <expression> IS [NOT] OF [TYPE] |