Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/04/2008, 10:28
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Re: sacar más de un registro coincidente

y tal vez también esto:
SELECT sku, count (distinct mayorista) as NUMEROMAYORISTAS, GROUP_CONCAT(mayorista) AS mayoristas FROM `articulossincro` group by sku HAVING count(sku) > 1 AND count (distinct mayorista) > 1