Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Paul Roberts — — source: Informix-list mailing list archive (1991-1998)
In article <6tmvuu$bh8$1@news.xmission.com>, <Tim_Clifton@candle.com> wrote:
>
>Hello,
>
> This is undoubtedly a pedestrian question to some of you, but as I am
>new to SQL...... Does anyone know of a quick way to find records that
>contain duplicate values for a particular field via SQL? Or is this done
>is SPL?
This will get all the "country" records with duplicate values of
"int_prefix", any use?
select * from country where int_prefix in
( select int_prefix from country group by 1 having count(*) > 1 )
order by int_prefix
- Paul
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.