Quick Search(Finding Duplicate Records)

Reply

Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Quick Search(Finding Duplicate Records)

 
0
  #1
Jan 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,625
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 221
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: Quick Search(Finding Duplicate Records)

 
0
  #2
Jan 9th, 2009
When you say table you mean database table?
If yes do an order by and read the data using ResultSet. Then check for duplicates
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 822
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: Quick Search(Finding Duplicate Records)

 
0
  #3
Jan 9th, 2009
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.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Re: Quick Search(Finding Duplicate Records)

 
0
  #4
Jan 10th, 2009
Originally Posted by verruckt24 View Post
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 822
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: Quick Search(Finding Duplicate Records)

 
0
  #5
Jan 10th, 2009
Then the query given by me should work with modifications wherever you want to have them.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Re: Quick Search(Finding Duplicate Records)

 
0
  #6
Jan 12th, 2009
Thank u
I got the solution.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: Quick Search(Finding Duplicate Records)

 
0
  #7
Jan 13th, 2009
Please marked this post as solved, thank you.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC