Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » UltraLite - Database Management and Reference » UltraLite SQL Reference » UltraLite SQL elements reference » Expressions in UltraLite » Search conditions in UltraLite

 

ALL conditions

Use the ALL condition in conjunction with a comparison operators to compare a single value to the data values produced by the subquery.

Syntax
expression compare   [ NOT ] ALL ( subquery )
Parameters
compare:
= | > | < | >= | <= | <> | != | !< | !>
Remarks

UltraLite uses the specified comparison operator to compare the test value to each data value in the result set. If all of the comparisons yield TRUE results, the ALL test returns TRUE.

See also
Example

Find the order and customer IDs of those orders placed after all products of order #2001 were shipped.

SELECT ID, CustomerID
FROM SalesOrders
WHERE OrderDate > ALL (
 SELECT ShipDate
 FROM SalesOrderItems
 WHERE ID=2001);