I have a table of data where an instance of a job is recorded each day (a kind of snapshot, if you will). Each record has a serial number recorded, as well as a few other fields. In most cases all the fields are identical. What I'm trying to create is a query that displays records where they are not identical. I only want these records - it generally means someone caused a change on one of the records, and I need to check if it was an accurate change or not.
Here's an example:
If I have a table like this:
Serial | Work Code | Date
A | AAA | 1 Jan
A | AAA | 2 Jan
A | AAB | 3 Jan
B | BBB | 1 Jan
B | BBB | 2 Jan
B | BBB | 3 Jan
I want it do only show me this:
Serial | Work Code | Count
A | AAA | 2
A | AAB | 1
Since all of Serial "B" were identical (except the date) I don't care to check it, but "A" has a mismatch and I need to check if it's correct or not.
How can I go about doing this?
Thank you,
~Kit
Here's an example:
If I have a table like this:
Serial | Work Code | Date
A | AAA | 1 Jan
A | AAA | 2 Jan
A | AAB | 3 Jan
B | BBB | 1 Jan
B | BBB | 2 Jan
B | BBB | 3 Jan
I want it do only show me this:
Serial | Work Code | Count
A | AAA | 2
A | AAB | 1
Since all of Serial "B" were identical (except the date) I don't care to check it, but "A" has a mismatch and I need to check if it's correct or not.
How can I go about doing this?
Thank you,
~Kit