M
markx
Hi guys,
May I have your help on this?
In my database I have a list of errors occurring since inception.
For every "case" (field 1, not a unique key), I can have "1" to "n" errors
(every error takes one record, so if there are 5 errors, the case will have
5 different records).
There are about 200 different errors possible.
There are about 35000 records within the database.
I would like to get out from this database the cases where the following
conditions are met:
Error "n1" occurs only once
AND/OR
Error "n2" occurs only once
(it means that the errors "n1" and "n2" can occur together, but every of
them only once)
AND
The errors listed above are the only ones that occur (i.e. there are no
other errors within the case, like "n3", "n4" etc.)
(The quantity of records for every case should be then less or equal 2, and
it should equal the sum of frequency of errors n1, n2, given that every of
these two errors can occur not more than once)
To put it simplier, I want the following conditions met:
n1 + n2 = total errors (eT)
n1 =< 1
n2 =< 1
eT >0
eT =<2
Sorry if I'm not clear in my explanations, I can always precise my question
if needed.
Thanks in advance for any helpful hints and comments!
mark
May I have your help on this?
In my database I have a list of errors occurring since inception.
For every "case" (field 1, not a unique key), I can have "1" to "n" errors
(every error takes one record, so if there are 5 errors, the case will have
5 different records).
There are about 200 different errors possible.
There are about 35000 records within the database.
I would like to get out from this database the cases where the following
conditions are met:
Error "n1" occurs only once
AND/OR
Error "n2" occurs only once
(it means that the errors "n1" and "n2" can occur together, but every of
them only once)
AND
The errors listed above are the only ones that occur (i.e. there are no
other errors within the case, like "n3", "n4" etc.)
(The quantity of records for every case should be then less or equal 2, and
it should equal the sum of frequency of errors n1, n2, given that every of
these two errors can occur not more than once)
To put it simplier, I want the following conditions met:
n1 + n2 = total errors (eT)
n1 =< 1
n2 =< 1
eT >0
eT =<2
Sorry if I'm not clear in my explanations, I can always precise my question
if needed.
Thanks in advance for any helpful hints and comments!
mark