Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/10/2005, 12:19
Avatar de haron
haron
 
Fecha de Ingreso: febrero-2004
Ubicación: Cádiz (refinitivo)
Mensajes: 632
Antigüedad: 20 años, 2 meses
Puntos: 3
prueba con esta consulta:
Código:
select t1.id, t1.nombre
from tabla t1
inner join tabla t2
  on t2.id <> t1.id
  and t2.nombre = t1.nombre
order by t1.id
observa que se esta haciendo un inner join dos veces con la misma tabla.
__________________
Si ocurre algo importante, estamos afuera fumándonos unos cigarritos.