I want to write the following query:
SELECT ..., MIN(SomeBitField), ... FROM ... WHERE ... GROUP BY ...
The problem is, SQL Ser
Try the following Note: Min represent And aggregate function , Max represent Or aggregate function
SELECT ..., MIN(case when SomeBitField=1 then 1 else 0 end), MIN(SomeBitField+0)... FROM ... WHERE ... GROUP BY ...
same result