标签: sql oracle8
我想在CASE_CITATION表中找到具有不同OBJECT_ID的重复casecitation_entry值。您能告诉我oracle SQL吗?
答案 0 :(得分:1)
可以通过多种方式解决此类问题。 EXISTS是典型的例子:
EXISTS
select t.* from t where exists (select 1 from t t2 where t2.CASE_CITATION = t.CASE_CITATION and t2.OBJECT_ID <> t.OBJECT_ID );