Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/03/2009, 10:09
seyko
 
Fecha de Ingreso: febrero-2007
Mensajes: 1.292
Antigüedad: 17 años, 3 meses
Puntos: 13
Respuesta: Cómo detectar campos repetidos (no tuplas)

Me he quedado dandole vueltas y de repente "como no se me ha ocurrido antes?"

Código:
select t1.*
from tabla t1
	join prueba  t2 on t1.col1 = t2.col1 AND t1.col2 = t2.col2 AND t1.id != t2.id
Salu2