I want to write the following query:
SELECT ..., MIN(SomeBitField), ... FROM ... WHERE ... GROUP BY ...
The problem is, SQL Ser
One option is MIN(SomeBitField+0). It reads well, with less noise (which I would qualify as elegance).
MIN(SomeBitField+0)
That said, it's more hack-ish than the CASE option. And I don't know anything about speed/efficiency.
CASE