sql - TRUE < FALSE in MS Access? -
i wanted or on boolean column in aggregate function of group by and, logically, chose max function this. found out true < false in ms access! seems ms access aliasing true -1 instead of 1.
i tried same in mysql, seems working fine:
mysql> select if(true > false, 1, 0); +------------------------+ | if(true > false, 1, 0) | +------------------------+ | 1 | +------------------------+ why that? why on earth access broke sql norm here?
yes in msaccess value of true -1.
it may have it's visual basic roots (in vb -1 true it's bitwise operators double duty logical operators), wouldn't surprised, msaccess breaks many many sql norms.
Comments
Post a Comment