Comparing two bitmasks in SQL to see if any of the bits match Comparing two bitmasks in SQL to see if any of the bits match sql sql