DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Quick Search(Finding Duplicate Records) (http://www.daniweb.com/forums/thread167153.html)

tulsi_apr03 Jan 9th, 2009 4:09 am
Quick Search(Finding Duplicate Records)
 
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

javaAddict Jan 9th, 2009 4:29 am
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

verruckt24 Jan 9th, 2009 1:52 pm
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.

tulsi_apr03 Jan 10th, 2009 4:47 am
Re: Quick Search(Finding Duplicate Records)
 
Quote:

Originally Posted by verruckt24 (Post 774598)
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

verruckt24 Jan 10th, 2009 2:53 pm
Re: Quick Search(Finding Duplicate Records)
 
Then the query given by me should work with modifications wherever you want to have them.

tulsi_apr03 Jan 12th, 2009 6:47 am
Re: Quick Search(Finding Duplicate Records)
 
Thank u
I got the solution.

PoovenM Jan 13th, 2009 4:54 pm
Re: Quick Search(Finding Duplicate Records)
 
Please marked this post as solved, thank you.


All times are GMT -4. The time now is 10:49 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC