A表中有两个列C1,C2按照C1分组,每组按C2排序,删除超过200条的记录
select c1,c2 from (select c1,c2,row_number() over (partition by c1 orderby c2) r from a) where r<=200;