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: SQL question

Re: SQL question

From: Keith Jamieson <pdkj02_at_email.mot.com>
Date: Wed, 26 May 1999 11:50:18 +0100
Message-ID: <374BD1EA.A57864FB@email.mot.com>


Select count(column_a),column_a

   from  table
group by column_a
having count(column_a) > 1;

NB: This will identify duplicate entries in a specific column in
your database table(In this case Column_A).
It will give you the value in the column, adn how many entries there are for
that value.

Piero Stanchi wrote:

Hello.
I want to print all the entries in a table that are present more than
one time. What kind of select statement must I do?
Thank you for any help.
    Piero
  Received on Wed May 26 1999 - 05:50:18 CDT

Original text of this message

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