
展开全部
select id,car_id, type
from (select id,car_id, type, row_number() over(partition by id,car_id, type order by id,car_id, type) sortno from table )
where sortno = 1
order by id,car_id, type
from (select id,car_id, type, row_number() over(partition by id,car_id, type order by id,car_id, type) sortno from table )
where sortno = 1
order by id,car_id, type
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询