• This should do the trick:

    SELECT Name

    FROM SAMPLE

    GROUP BY Name

    HAVING COUNT(*) > 1;

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP