bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL ALL Keyword

Concept visual

SQL ALL Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

ALL Keyword

Previous

❮ SQL Keywords

Next

All

The ALL

command returns true if all of the subquery values meet the condition. The following SQL statement returns TRUE and lists the productnames if ALL

Formula

the records in the OrderDetails table has quantity = 10:

Example

SELECT ProductName

FROM Products

WHERE ProductID = ALL (SELECT ProductID FROM OrderDetails WHERE Quantity = 10);

Previous

❮ SQL Keywords

Next

Previous

SQL ADD CONSTRAINT Keyword

Next

SQL ALTER Keyword