Querying SQL table with different values in same column with same ID

前端 未结 2 1837
逝去的感伤
逝去的感伤 2021-01-29 10:25

I have an SQL Server 2012 table with ID, First Name and Last name. The ID is unique per person but due to an error in the historical feed,

2条回答
  •  走了就别回头了
    2021-01-29 10:54

    SELECT
        ID
    FROM
        <>
    GROUP BY
        ID
    HAVING
        COUNT(*) > 1;
    

    提交回复
    热议问题