Wednesday, 14 August 2024

Find dupicates records using groupby

 SELECT 

    EmployeeNumber, 

    COUNT(*) as CountOfDuplicates

FROM 

    profiles

GROUP BY 

    EmployeeNumber

HAVING 

    COUNT(*) > 1;

No comments:

Post a Comment

Enviri JD for BI

  Job Description: Experience working closely with business users/leaders. Well-versed in requirement gathering and can lead business users ...