I wanna to do a select that It return me a group of objects that they have a same data. My problem are this: I have select
select *
from avi
where codAvi in (select codAVi
from csa
where codEca in (select codEca
from csa
where codAvi =19));
My problem are if i codAvi 19 have codEca 1,2,3 that query return all avi with that codEca and he return others for example avi with codEca 1,2,3,4.
Any Idea?
At finally I use that: