943,833 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2918
  • Java RSS
Jan 9th, 2009
0

Quick Search(Finding Duplicate Records)

Expand Post »
In Project Contains huge data. In a table nearly 1.5 lac records are there.Those records Contains First Name,LastName,and Father Name.
My problem is to find duplicate Records based on the names. Moreover i want to search these records Quickly.

any solution is there for quick accessing

Can anybody give the solution for this problem
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tulsi_apr03 is offline Offline
13 posts
since Jan 2009
Jan 9th, 2009
0

Re: Quick Search(Finding Duplicate Records)

When you say table you mean database table?
If yes do an order by and read the data using ResultSet. Then check for duplicates
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,259 posts
since Dec 2007
Jan 9th, 2009
0

Re: Quick Search(Finding Duplicate Records)

Duplicates meaning, the entire name should be identical or just any of the first name, last name etc ?
Check "select firstname, count(first name) from tablename having count(firstname) > 1" something like this.
Reputation Points: 485
Solved Threads: 89
Posting Shark
verruckt24 is offline Offline
944 posts
since Nov 2008
Jan 10th, 2009
0

Re: Quick Search(Finding Duplicate Records)

Click to Expand / Collapse  Quote originally posted by verruckt24 ...
Duplicates meaning, the entire name should be identical or just any of the first name, last name etc ?
Check "select firstname, count(first name) from tablename having count(firstname) > 1" something like this.

Any Of the names that is, Following are the records

House_no FirstName LastName FatherF_NM Father_L_NM
-------------------------------------------------------------------------------------
1-1/A Ajay Kumar Surender Verma
1-22/A Ajay Surender
1-33 Ajay Kumar SurenderVerma

I want to find out all these records
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tulsi_apr03 is offline Offline
13 posts
since Jan 2009
Jan 10th, 2009
0

Re: Quick Search(Finding Duplicate Records)

Then the query given by me should work with modifications wherever you want to have them.
Reputation Points: 485
Solved Threads: 89
Posting Shark
verruckt24 is offline Offline
944 posts
since Nov 2008
Jan 12th, 2009
0

Re: Quick Search(Finding Duplicate Records)

Thank u
I got the solution.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tulsi_apr03 is offline Offline
13 posts
since Jan 2009
Jan 13th, 2009
0

Re: Quick Search(Finding Duplicate Records)

Please marked this post as solved, thank you.
Reputation Points: 56
Solved Threads: 11
Junior Poster
PoovenM is offline Offline
147 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java and Web Services
Next Thread in Java Forum Timeline: Get Parameter value





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC