SQL Query Duplicate Removal Help

后端 未结 4 512
栀梦
栀梦 2021-01-24 06:32

I need to remove semi duplicate records from the following table

ID      PID      SCORE
1       1        50
2       33       20
3       1        90
4       5             


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 07:30

    I can't see your query, so I've made up this example...

    SELECT
        PID,
        MAX(Score)
    FROM
        tblTable
    GROUP BY
        PID
    

提交回复
热议问题