Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2011, 22:58
Avatar de cristian_qc
cristian_qc
 
Fecha de Ingreso: abril-2011
Mensajes: 43
Antigüedad: 13 años
Puntos: 8
Respuesta: Consulta seleccionar dato columnas repetidas

Fijate si esto te sirve:

Código MySQL:
Ver original
  1.        ID,LEYENDA,CONCEPTO,CONCEPTO1,CONCEPTO2
  2. from TABLA
  3. where CONCEPTO not in (
  4.       select CONCEPTO from TABLA group by CONCEPTO having count( CONCEPTO ) > 1 );

Bueno eso lo hacés con cada campo y te devuelve los registros que se repiten.