Ver Mensaje Individual
  #2  
Antiguo 06-07-2011
Saklut Saklut is offline
Registrado
 
Registrado: mar 2007
Posts: 4
Reputación: 0
Saklut Va por buen camino
A ver si esto te vale:

Código SQL [-]
Select Productos.*
  from Productos
 where Productos.id in
       (select Productos.id
          from RelCategoriasProductos
         WHERE RelCategoriasProductos.IdCategoria IN (a, b, c)
         group by Productos.id
        having count(*) = 3)

OJO: en la última línea debes poner la cantidad de categorías (en este caso 3).
Responder Con Cita