Avatar of stummj
stummj
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Oracle SQL

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?
Oracle DatabaseSQL

Avatar of undefined
Last Comment
Qlemo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Muhammad Khan

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
tigin44

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes