Show TOC Start of Content Area

This graphic is explained in the accompanying text Quantified comparison predicate  Locate the document in its SAP Library structure

The quantified comparison predicate is used to compare a value with the result of a query.

Syntax

This graphic is explained in the accompanying text

<quantified comparison predicate> ::=
    <value expression> <comparison operator> ( ALL | SOME | ANY ) '(' <query specification> ')'.

 

The <query specification> must have the a result of one column. The data type of the <value expression> must be comparable to the type of that column.

If ALL is specified, the result of the <quantified comparison predicate> is:

If SOME or ANY is specified, the result of the <quantified comparison predicate> is:

Example

This graphic is explained in the accompanying text

SELECT * FROM a WHERE c > ALL ( SELECT c FROM b )

The Quantified Comparison. This SELECT yields all rows from table a where the column a.c has a value that is greater than all values of column b.cin table b.

More Information

Value expressions

Query Specification

End of Content Area