答案 0 :(得分:0)
使用Row_number,您可以获得ID的第一行
Select * from (
Select *,
Row_number()OVER(PARTITION BY ID ORDER BY (SELECT NULL))RN
From Your Table )T
Where T.RN = 1
答案 1 :(得分:0)
Select Id,Label,Score,Flag,AutoGenId from (
Select *,
Row_number()OVER(PARTITION BY ID ORDER BY (SELECT NULL))RN
From [VisionApiResponseData] )T
Where T.RN = 1