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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL help. Counting duplicate rows (Grrrr kill users!)

Re: SQL help. Counting duplicate rows (Grrrr kill users!)

From: John Hough <q6y_at_ornl.gov>
Date: 1996/11/26
Message-ID: <57f22a$q2i@stc06.ctd.ornl.gov>#1/1

select col_1, count(*)
from table_name
having count(*) > 1
group by col_1
order by count(*) desc
/

This should get you the list you desire.

Hope this helps,

John Hough Received on Tue Nov 26 1996 - 00:00:00 CST

Original text of this message

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