Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/08/2011, 05:08
Avatar de SirDuque
SirDuque
 
Fecha de Ingreso: febrero-2009
Ubicación: Paso del Rey, Buenos Aires, Argentina
Mensajes: 975
Antigüedad: 15 años, 2 meses
Puntos: 89
Respuesta: Consulta seleccionar dato columnas repetidas

Cita:
Iniciado por cristian_qc Ver Mensaje
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.
Ahora lo chequeo, excelente avatar
__________________
Mono programando!
twitter.com/eguimariano