我正在使用mssql并具有将记录分组并向我返回下表的选择查询: Example Table
我想查询该表(用另一个选择查询将其包装),该表将根据我设置的条件(BETWEEN)过滤输出4列
SELECT * FROM FirstTable
WHERE CountTV BETWEEN 1 AND 3
AND CountRadio BETWEEN 2 AND 5
AND CountModem BETWEEN 0 AND 2
AND CountOven = 0
是否可以像我一样使用多个WHERE AND列进行过滤? 与HAVING子句相比有什么区别?