Apr 15, 2004 #1 Gatorajc MIS Mar 1, 2002 423 US What would the query be for getting a duplicate entry. ID DOCID DRFNAME DRLNAME 1 JSMITH Joe Smith 2 JSMITH Joe Smith 3 TJONES Thomas Jones I just want the JSMITH's Thanks in advance AJ Do you feel lucky?
What would the query be for getting a duplicate entry. ID DOCID DRFNAME DRLNAME 1 JSMITH Joe Smith 2 JSMITH Joe Smith 3 TJONES Thomas Jones I just want the JSMITH's Thanks in advance AJ Do you feel lucky?
Apr 15, 2004 1 #2 dnoeth Instructor Oct 16, 2002 545 DE select docid, count(*) from mytable having count(*) > 1 or if you want the detail rows, too: select * from mytable where docid in (select docid from mytable having count(*) > 1 ) Dieter Upvote 0 Downvote
select docid, count(*) from mytable having count(*) > 1 or if you want the detail rows, too: select * from mytable where docid in (select docid from mytable having count(*) > 1 ) Dieter