Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/12/2007, 14:49
Avatar de Beakdan
Beakdan
 
Fecha de Ingreso: diciembre-2001
Ubicación: Monterrey, Nuevo León
Mensajes: 433
Antigüedad: 22 años, 4 meses
Puntos: 7
Re: excluir registros ayudaaaaa

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