G
Guest
Hi, all
I am designing a database and what I want is a "role" field that has a code in it made up of different single letter codes. For example, A for artist, S for staff and so on. These are not mutually exclusive codes and order doesn't matter, so it is possible, for example, to be both an artist and a staff member and have a code SA == AS. At the moment, we have half a dozen or such codes, but this is likely to increase
Creating such a field is easy. What I want to be able to do is construct queries on substrings. For example, a query on all persons such that Role = A or a query on Role = A and Role = B. It would also be useful to negate this, i.e, all those whose Role = A and Role != B
Thanks in advance for the help
Glenn
I am designing a database and what I want is a "role" field that has a code in it made up of different single letter codes. For example, A for artist, S for staff and so on. These are not mutually exclusive codes and order doesn't matter, so it is possible, for example, to be both an artist and a staff member and have a code SA == AS. At the moment, we have half a dozen or such codes, but this is likely to increase
Creating such a field is easy. What I want to be able to do is construct queries on substrings. For example, a query on all persons such that Role = A or a query on Role = A and Role = B. It would also be useful to negate this, i.e, all those whose Role = A and Role != B
Thanks in advance for the help
Glenn