实例 SQL 逻辑运算符 SOME

x
 
SELECT * FROM Products
WHERE Price > SOME (SELECT Price FROM Products WHERE Price > 20);
        
                    

输出结果

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
4Chef Anton's Cajun Seasoning2248 - 6 oz jars22.00005300False
5Chef Anton's Gumbo Mix2236 boxes21.3500000True
6Grandma's Boysenberry Spread3212 - 8 oz jars25.0000120025False
7Uncle Bob's Organic Dried Pears3712 - 1 lb pkgs.30.000015010False
8Northwoods Cranberry Sauce3212 - 12 oz jars40.0000600False
9Mishi Kobe Niku4618 - 500 g pkgs.97.00002900True
10Ikura4812 - 200 ml jars31.00003100False
12Queso Manchego La Pastora5410 - 500 g pkgs.38.00008600False
14Tofu6740 - 100 g pkgs.23.25003500False
17Alice Mutton7620 - 1 kg tins39.0000000True
18Carnarvon Tigers7816 kg pkg.62.50004200False
20Sir Rodney's Marmalade8330 gift boxes81.00004000False
26Gumb?r Gummib?rchen113100 - 250 g bags31.23001500False
27Schoggi Schokolade113100 - 100 g pieces43.900049030False
28R?ssle Sauerkraut12725 - 825 g cans45.60002600True
29Thüringer Rostbratwurst12650 bags x 30 sausgs.123.7900000True
30Nord-Ost Matjeshering13810 - 200 g glasses25.890010015False
32Mascarpone Fabioli14424 - 200 g pkgs.32.000094025False
37Gravad lax17812 - 500 g pkgs.26.0000115025False
38C?te de Blaye18112 - 75 cl bottles263.500017015False
43Ipoh Coffee20116 - 500 g tins46.0000171025False
51Manjimup Dried Apples24750 - 300 g pkgs.53.000020010False
53Perth Pasties24648 pieces32.8000000True
55Paté chinois25624 boxes x 2 pies24.0000115020False
56Gnocchi di nonna Alice26524 - 250 g pkgs.38.0000211030False
59Raclette Courdavault2845 kg pkg.55.00007900False
60Camembert Pierrot28415 - 300 g rounds34.00001900False
61Sirop d'érable29224 - 500 ml bottles28.5000113025False
62Tarte au sucre29348 pies49.30001700False
63Vegie-spread7215 - 625 g jars43.90002405False
64Wimmers gute Semmelkn?del12520 bags x 4 pieces33.2500228030False
65Louisiana Fiery Hot Pepper Sauce2232 - 8 oz bottles21.05007600False
69Gudbrandsdalsost15410 kg pkg.36.000026015False
71Flotemysost15410 - 500 g pkgs.21.50002600False
72Mozzarella di Giovanni14424 - 200 g pkgs.34.80001400False