SQL to test for any combination of three characters
Greetings,
I am using Oracle 10g (10.1.0.4.0) on Linux (Red Hat Enterprise Linux AS release 3). One of our database tables has a VALUE column. Valid values for this column is a string comprising any combination of the letters 'A', 'B', 'C' or 'D' where each letter appears only once, for example: 'CAB' or 'DCB' or 'DB' or 'A' or 'ABCD', etc.
[Note that 'BBD' is not valid because the letter 'B' appears twice.]
I am looking for SQL that will test whether the letter 'D' is not present in the string.
Thanks (in advance),
Avi.