私は2つの異なるデータベースから重複レコードを特定することができます。
select * from
taskperformance a, taskperformance@dm_prod b
where
a.activityin = b.activityin
and a.completiondate = b.completiondate
重複したレコードをから削除するにはどうすればよいb
ですか?
私は試した:
delete taskperformance@dm_prod where exist (
select * from
taskperformance a, taskperformance@dm_prod b
where
a.activityin = b.activityin
and a.completiondate = b.completiondate )
しかし、それは私が必要とする以上のものを削除します。