I wanted to do OR
on boolean column in aggregate function of group by
and, logically, I chose Max
function for this. But I found out that TRUE < FALSE
in MS Access! It seems that MS Access is aliasing TRUE
to -1
instead of 1
.
I tried the same in MySQL, seems working fine:
mysql> select if(TRUE > FALSE, 1, 0);
+------------------------+
| if(TRUE > FALSE, 1, 0) |
+------------------------+
| 1 |
+------------------------+
Why is that? Why on earth Access broke the SQL norm here?