Código:
alguien podria decirme? select a.num_inv,b.clave from usrsci.redes a left outer join servxequip b on ltrim(rtrim(b.num_inv))=ltrim(rtrim(a.num_inv)) where b.clavein ('01','02','03') and a.num_inv in ( select a.num_inv from usrsci.redes a left outer join servxequip b on ltrim(rtrim(b.num_inv))=ltrim(rtrim(a.num_inv)) where b.clave in ('01','02','03') group by a.num_inv having count(*)=3 ) order by a.num_inv, b.clave