I have a column (Table1.Column1) That I'm using as a flag for:IF Table2.Field1 AND Table2.Field2 are NULL, then 0IF Table2.Field1 OR Table2.Field2 are NULL, then 1
However, Table2 is obtained through a join, and it is faster to run them separately then state them in the same ON clause, so instead:IF Table2.Field1 IS NOT NULL, then 1ELSEIF Table2.Field2 IS NOT NULL, then 1ELSE 0
---------Ignorance may be bliss, but knowledge is thrill.