I want to write the following query:
SELECT ..., MIN(SomeBitField), ... FROM ... WHERE ... GROUP BY ...
The problem is, SQL Ser
AVG(CAST(boolean_column AS FLOAT)) OVER(...) AS BOOLEAN_AGGREGATE
Give a fuzzy boolean :
1 indicate that's all True;
0 indicate that's all false;
a value between ]0..1[ indicate partial matching and can be some percentage of truth.