Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Duplicate Records SQL Question

Re: Duplicate Records SQL Question

From: Falko Rotter <fantomas99_at_gmx.de>
Date: Tue, 21 Aug 2001 10:19:49 +0200
Message-ID: <9lt5gn$6ba$1@newsread2.nexgo.de>


Hi,

> >
>
> A more easy solution
>
> select <primary key columns> , count(*)
> from table
> group by <primary key columns>
> having count(*) > 1
>

I think he meant that the field memid is an unique field (primary key). That's
the reason for the little complicated solution.

> > Month, Memcode, Memid, PayAmt
> >
> > How do I list only the duplicate records for every month that have a
> > common memcode and payamt?

Regards,
Falko Rotter


Rotter & Kalweit Softwaredesign GbR
Friemarer Straße 38

99867 Gotha
GERMANY mail: news_at_falko-rotter.de Received on Tue Aug 21 2001 - 03:19:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US