FirstName LastName SSN Phone EncounterID
Justin Kelley 555-55-5555 517-555-1212 123456789
Justin Kelly 555-55-5555 517-555-1212 123456789
James Smith 444-44-4444 312-555-3434 99944444
James Smith 444-44-4444 312-555-3434 99944444
I have a table like the one above with millions of EncounterIDs. I need to know the number of times there is a difference (defect) in EACH column. My example output would be:
First Name - 2/2
Last Name - 1/2
SSN - 2/2
Phone - 2/2
Any help here?
The data that you basically want is the number of entities that have more than one value in a column.
This is most easily calculated on a column basis:
You can format the results however you like.