I have 64bit data fields that I want to select
Look at it this way.
Blue = 0x01
Red = 0x02
Green= 0x04
Pink =0x08
Take this out -- another 30 bits or more for 60 colors (NOTE just using colors as an example)
Now I ask you what you desire. You pick your options and I "OR" them together and do a "select xxx where (Colors & YourChoices) "
AND-ing one INTEGER to another will produce a list of matches without a lot of compare