A SELECT statement that is nested inside another SELECT statement.
A subquery is structured like a regular query.
In UltraLite, you can only use subquery references in the following situations:
You can write subqueries with references to names that are specified before (to the left of) the subquery, sometimes known as outer references to the left. However, you cannot have references to items within subqueries (sometimes known as inner references).
The following subquery is used to list all product IDs for items that are low in stock (that is, less than 20 items).
FROM SalesOrderItems ( SELECT ID FROM Products WHERE Quantity < 20 ); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |