English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
If all subquery values meet the condition, the ALL command returns true.
If all records in the OrderDetails table have a quantity of10, then the following SQL statement returns TRUE and lists the product name:
SELECT ProductName FROM Products WHERE ProductID = ALL (SELECT ProductID FROM OrderDetails WHERE Quantity = 10);