Lo que dices significa que no quieres ofertas que contengan los productos que no buscas.
Código:
select distinct codOferta
from productosofertas
where codOferta not in(
select distinct codOferta
from productosofertas
where codproducto not in(1, 2)
)
Hasta luego