ptalindstrom
Technical User
I have what is likely a pretty simple question. I am trying to find records which have a common value in one field but mismatched values in a 2nd field.
A snapshot of the table i am looking at is:
ODInvoiceID EmployerID EmployerInvoiceID
4468 55 596
4464 55 596
4448 54 596
4446 55 596
4442 55 596
4440 59 595
4438 59 595
4436 56 594
4434 56 594
All the records with a common EmployerInvoiceID should have the same EmployerID; but you can see that record #3 does not. The query should find only that record.
I figured something like a grouping with a min and max of the EmployerID not being equal - but can't get the grouping correct.
thanks for any help,
peter...
A snapshot of the table i am looking at is:
ODInvoiceID EmployerID EmployerInvoiceID
4468 55 596
4464 55 596
4448 54 596
4446 55 596
4442 55 596
4440 59 595
4438 59 595
4436 56 594
4434 56 594
All the records with a common EmployerInvoiceID should have the same EmployerID; but you can see that record #3 does not. The query should find only that record.
I figured something like a grouping with a min and max of the EmployerID not being equal - but can't get the grouping correct.
thanks for any help,
peter...