Assuming what you mean in the SQL database, then in your search SQL you can usually add, for example. WHERE (MyField AND 16) = 16, WHERE (MyField AND 24) = 24, etc.
However, please note that if you are trying to optimize such search options, and the number of rows that usually match the query is much less than the total number of rows, then this is probably not a good way to present this data. In this case, it would be better to have a separate table "ProductStore" that contains pairs (ProductID, StoreID) representing this information (and indexed to StoreID).
Neil coffey
source share