查询数据库重复数据

select * from patientcase a where exists (select Case_number_c from patientcase where Case_number_c=a.Case_number_c and Task_code_c = a.Task_code_c group by Case_number_c having count(*)>1)

你可能感兴趣的:(查询数据库重复数据)