According to 'normal' precedence, the BitOr on line 14 of your trace should be at the end, but '&' and '|' seem to have equal precedence in SQLite (never had noticed that before). This is apparently intentional; see <http://www.sqlite.org/lang.html#expr>.
Change your expression from (~(a&b)) & (a|b) | (~(c&d)) & (c|d) to ~(a&b) & (a|b) | (~(c&d) & (c|d)), and it should give the result you're looking for. Regards --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]