Imagine a table of contacts, where the same contact has multiple entries, but with differing data. How would one go about selecting this data for review? Unfortunately, a merge of sorts would be disagreeable as there may exist visually identifiable erroneous data that is not currently envisaged to be automatically processed.
FName LName Email Phone
Heywood Yapinchme 555-555-555
Heywood Yapinchme hy@moes.com
Seymour Butz sb@moes.com
Seymour Butz 555-555-556
Seymour Butz
Hughe Jass hj@moes.com 555-555-557
Amanda Hugginkiss ah@moes.com
I would like to see just the duplicates of the first two columns where more than one entry exists. i.e.
FName LName Email Phone
Heywood Yapinchme 555-555-555
Heywood Yapinchme hy@moes.com
Seymour Butz sb@moes.com
Seymour Butz 555-555-556
Seymour Butz
The next step of review is in the blue ether. Currently a little over a million rows, Bart has been busy. But beefy servers and this isn't regular operation but a one off to deal with data migration, so can be slightly gash.
I have tried a bit with SELECT DISTINCT and GROUP BY but it seems to just return on of each contact.