Using distinct with expression subqueries  Subqueries with any and all

Chapter 5: Subqueries: Using Queries Within Other Queries

Quantified predicate subqueries

Quantified predicate subqueries, which return a list of 0 and higher values, are subqueries in a where or having clause that are connected by any, all, in, or exists. The any or all subquery operators modify comparison operators.

There are three types of quantified predicate subqueries:

Though Adaptive Server allows the keyword distinct in quantified predicate subqueries, it always processes the subquery as if distinct were not included.





Copyright © 2005. Sybase Inc. All rights reserved. Subqueries with any and all

View this book as PDF