解决方案:使用row_number() over( partition by) 方法分组排序
with temp as (
select a,b,c from test_table
)
select a,b,c from (
select a,b,c,row_number() over (partition by a order by rownum) row_no from temp
) where row_no = 1
ps: with temp as() 括号内的内容 就是查询的sql 结果包含重复数据