P
PSI
My application presents several lists of user defined items from which
a user can later select any number to be active (eg a pick list ). I
need to track the items picked for each user. The list will generally
be approx 60 items.
The items are stored in a table of (ID, ItemName). I'm looking for
suggestions on efficiently storing and retrieving the items picked. In
particular how can one create efficient queries to check whether a
particular item or set of items is picked?
The ID is autonumber but I had thought to make it a number where I
would generate it to used as a bitmask correponding to the index
(0x01,0x02,0x04 etc) but don't know if this is feasible beyond 32
items.
Along the same thought lines, I was also considering generating a "bit
string" ( where each index corresponds to (0==not picked, 1==picked)
) in a field of the user record. (I suppose the "bit string" could be
a text string, a bunch of longs or a binary blob).
Although I've been programming for a lot a years I'm a novice at
database/access/SQL so any quidance would be very much appreciated.
Thanks
Frank
a user can later select any number to be active (eg a pick list ). I
need to track the items picked for each user. The list will generally
be approx 60 items.
The items are stored in a table of (ID, ItemName). I'm looking for
suggestions on efficiently storing and retrieving the items picked. In
particular how can one create efficient queries to check whether a
particular item or set of items is picked?
The ID is autonumber but I had thought to make it a number where I
would generate it to used as a bitmask correponding to the index
(0x01,0x02,0x04 etc) but don't know if this is feasible beyond 32
items.
Along the same thought lines, I was also considering generating a "bit
string" ( where each index corresponds to (0==not picked, 1==picked)
) in a field of the user record. (I suppose the "bit string" could be
a text string, a bunch of longs or a binary blob).
Although I've been programming for a lot a years I'm a novice at
database/access/SQL so any quidance would be very much appreciated.
Thanks
Frank