Siebel Tools Reference > Siebel Tools Fundamentals > Using Queries to List Object Definitions >

Compound Queries


Compound queries enable you to find information based on two or more conditions. There are three ways to create compound queries:

When you create a compound query, follow the same basic steps you use to create a simple query.

Use parentheses to control the order in which a compound search is conducted. Expressions inside parentheses are searched for first (as they appear left to right). Table 9 lists the unique operators for compound queries. Use these operators in addition to the operators you use to create a simple query.

Table 9.  Compound Operators
Operator
Description
AND
All the conditions connected by ANDs must be true for a search to retrieve a record.
OR
At least one of the conditions connected by the OR must be true for a search to retrieve a record.
NOT
The condition modified by this operator must be false for a search to retrieve a record.

For more information about compound operators, see Siebel Developer's Reference.


 Siebel Tools Reference
 Published: 20 October 2003