答案 0 :(得分:0)
delete from table1 f0
where rrn(f0) in
(
select f3.rw from (
select rrn(f1) rw,
rownumber() over(partition by Policy) rang
from table1 f1 inner join table2 f2 on f1.policy=f2.policy
) f3
where f3.rang=1
)
答案 1 :(得分:-1)
删除顶部(选择计数(a.Policy)-1从Table1 x 中的x.policy(从表2中选择不同的策略))来自Table1