SQL Remove almost duplicate rows
问题 I have a table that contains unfortuantely bad data and I'm trying to filter some out. I am sure that the LName, FName combonation is unique since the data set is small enough to verify. LName, FName, Email ----- ----- ----- Smith Bob bsmith@example.com Smith Bob NULL Doe Jane NULL White Don dwhite@example.com I would like to have the query results bring back the "duplicate" record that does not have a NULL email, yet still bring back a NULL Email when there is not a duplicate. E.g. Smith Bob