john471
Registered User.
- Local time
- Today, 21:55
- Joined
- Sep 10, 2004
- Messages
- 392
For (a relatively simple) example;
If I have a table tblBitMask with one field, BitMaskedField (number-byte data), that has 8 records:-
tblBitMask.BitMaskedField
1
2
3
4
5
6
7
8
I want to run a query e.g.
WHERE ((BitMaskedField AND 4) = true)
I would expect to return:-
4,5,6 & 7
(but not 8, as (8 AND 4) = false).
My attempts seem to return all records, no records, or only one record; none of which is the desired result (or I wouldn't have to post to the forum for help; would I ????)
On thinking about it further, I expect that what I am wanting to do violates normalisation rules, but it would give me maximum flexibility with minimum fields and records; so I am still wanting to know if it can be done.
Does anyone have any pointers ?
Thanx
John.
If I have a table tblBitMask with one field, BitMaskedField (number-byte data), that has 8 records:-
tblBitMask.BitMaskedField
1
2
3
4
5
6
7
8
I want to run a query e.g.
WHERE ((BitMaskedField AND 4) = true)
I would expect to return:-
4,5,6 & 7
(but not 8, as (8 AND 4) = false).
My attempts seem to return all records, no records, or only one record; none of which is the desired result (or I wouldn't have to post to the forum for help; would I ????)
On thinking about it further, I expect that what I am wanting to do violates normalisation rules, but it would give me maximum flexibility with minimum fields and records; so I am still wanting to know if it can be done.
Does anyone have any pointers ?
Thanx
John.