|
Returns true if any of the subquery values meet the condition
Retorna verdadeiro se algum dos valores da subconsulta atender à condição
The following SQL statement returns TRUE and lists the productnames if it finds ANY records in the OrderDetails table where quantity = 10:
A seguinte instrução SQL retorna TRUE e lista os nomes dos produtos se encontrar QUALQUER (ANY) registro na tabela OrderDetails onde
quantidade = 10:
SELECT ProductName
FROM Products
WHERE ProductID = ANY (SELECT ProductID
FROM OrderDetails
WHERE Quantity = 10);
|
The following SQL statement returns TRUE and lists the productnames if it finds ANY records in the OrderDetails table where quantity > 99:
A seguinte instrução SQL retorna TRUE e lista os nomes dos produtos se encontrar QUALQUER (ANY) registro na tabela OrderDetails onde
quantidade > 99:
SELECT ProductName
FROM Products
WHERE ProductID = ANY (SELECT ProductID
FROM OrderDetails
WHERE Quantity > 99);
|
|