我有一个包含两个整数列的简单表numInfo,名为col1,col2。现在我想将它们与一个数字进行比较,所以我将编写一个查询,如下所示: select * from numInfo where col1 < 26 OR col2 <26 是否可以将这两个条件组合为: select* from numInfo where (col1 or col2) < 26 上面的查询给了我一个错误,所以我只想知道如何将条件组合成一个条件?
我在找一个答案其实是 select DISTINct A.[Product] as A
where EXISTS(select B.ParentProductCategoryID from [SalesLT].[ProductCategory] as B where A.ProductCategory