Question d’entretien chez SCAN Health Plan

How to remove duplicate records

Réponses aux questions d'entretien

Utilisateur anonyme

25 juil. 2015

Use CTE.

1

Utilisateur anonyme

28 janv. 2016

or to clarify duplicates into a staging table when you are taking a subset of all the fields and you know what specific fields you are after, INSERT INTO > (>) SELECT > FROM (>) GROUP BY > having count(*)>1 and to add only those that are not duplicates INSERT INTO > (>) SELECT > FROM >) T GROUP BY > having count(*)=1