I have a database that records 20 fields of information about a record. In two of these fields, it indicates if the record has been tested or not and if it passed or not. These are equated to 1 and 0 for yes and not respectively. In one additional field it indicates what type of test. I then do simple calculations for total tested, total failed and a percentage of the failure.
Here is my problem: You could have several records with identical data less on the field which describes the type of test given. Everything else in that record may be identical to another row, or very similar in that all but the type of test. If any test performed becomes a failure, then everything that applies to that one record or many records is a failure. Is there any way to perform a query or other function that will compare all records except the “test taken” and “test passed/failed” field, use the largest value from each of those columns for otherwise matching records, and then perform final calculations to give me percentages so that item failures equate to one failure for one item, not one failure for three tests thus skewing the percentages of total pass/failed records?
Here is my problem: You could have several records with identical data less on the field which describes the type of test given. Everything else in that record may be identical to another row, or very similar in that all but the type of test. If any test performed becomes a failure, then everything that applies to that one record or many records is a failure. Is there any way to perform a query or other function that will compare all records except the “test taken” and “test passed/failed” field, use the largest value from each of those columns for otherwise matching records, and then perform final calculations to give me percentages so that item failures equate to one failure for one item, not one failure for three tests thus skewing the percentages of total pass/failed records?