troubleshooting Question

Oracle SQL

Avatar of stummj
stummjFlag for United Kingdom of Great Britain and Northern Ireland asked on
Oracle DatabaseSQL
3 Comments3 Solutions425 ViewsLast Modified:
Hello experts

I have a table of arounr 50000 rows. I need to find the rows where one of the columns has duplicate values.

So, for example I may have:

ACCOUNT_NUMBER     REFERENCE     START    END
----------------------------------------------------------------
1234                               REF001           1/1/11     3/2/11
1234                               REF001            4/2/11
1323                               REF002           12/1/11
1263                               REF003            17/4/11
7626                               REF004            16/2/11  17/2/11
6766                               REF004             18/2/11


So in this example I want 4 rows returning. Those with REF001 and REF004, as they both have duplicate references.

Can anyone help me out with the query?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros