实例 SQL 逻辑运算符 ANY

x
 
SELECT * FROM Products
WHERE Price > ANY (SELECT Price FROM Products WHERE Price > 50);
        
                    

输出结果

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
9Mishi Kobe Niku4618 - 500 g pkgs.97.00002900True
18Carnarvon Tigers7816 kg pkg.62.50004200False
20Sir Rodney's Marmalade8330 gift boxes81.00004000False
29Thüringer Rostbratwurst12650 bags x 30 sausgs.123.7900000True
38C?te de Blaye18112 - 75 cl bottles263.500017015False
59Raclette Courdavault2845 kg pkg.55.00007900False