prova così

select ....

....
group by codric
having count(codric) > 1