La Web del Programador: Comunidad de Programadores
https://www.lawebdelprogramador.com/foros/Power-Builder/1120743-Traer-Repetidos-en-un-datawindos.html

Traer Repetidos en un datawindos

Traer Repetidos en un datawindos

Publicado por barrunto (50 intervenciones) el 04/07/2009 22:15:35
Hola Necesito traer los valores repetidos en una tabla por medio de un datawindows.

Ejemplo cedulas repetidas

RE:Traer Repetidos en un datawindos

Publicado por carlin (5 intervenciones) el 05/07/2009 05:43:29
select (campos)
from (tabla) WITH REPEAT

RE:Traer Repetidos en un datawindos

Publicado por ZBOOK (4 intervenciones) el 06/07/2009 16:32:48
Usa SQL

SELECT CAMPO_REPETIDO FROM TABLA
GROUP BY CAMPO_REPETIDO
HAVING COUNT( CAMPO_REPETIDO ) > 1


o todas las columnas de las filas repetidas

SELECT * FROM TABLA WHERE CAMPO_REPETIDO IN
(
SELECT CAMPO_REPETIDO FROM TABLA
GROUP BY CAMPO_REPETIDO
HAVING COUNT( CAMPO_REPETIDO ) > 1

)