select code from bd_psndoc c where c.code in(select c.code from bd_psndoc c group by c.code having count(*)>1)