Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello every one
i am trying to fine the duplicate value in my voter table
where i want find duplicate name and address.


in table name and houseno are two column i want display the data which are same where

if

Name Houseno

sandy k123

komal h123

sandy k123

if this is the data in table

i want display the like this

name houseno
sandy k123
sandy k123

please help me.

thanks in advance.
Posted
Updated 19-Sep-13 0:00am
v2
Comments
[no name] 19-Sep-13 5:47am    
What have you tried? What does your data look like? What is the output that you get when you run your query? What does the output look like that you want to get?
basurajkumbhar 19-Sep-13 5:58am    
in table name and houseno are two column i want display the data which are same where

if

Name Houseno

abc k123

abc h123

abc k123

if this is the data in table

i want display the like this

name houseno
abc k123
abc k123


Hi, you can use a statement with Group and Having clause to find duplicates:

SQL
Select Name, Count(Name) as Cnt from voters
Group by Name
Having Count(Name) > 1
 
Share this answer
 
v2
MS Access has a built-in query builder wizard for finding duplicates

query-wizard.html[^]
 
Share this answer
 
Copy(it mean cretae another table and move the data from anothor table) your table value and import another table in Import table delete all the distinct value and you to get duplicate value
 
Share this answer
 
v2
Comments
[no name] 19-Sep-13 6:25am    
OMG! Seriously? Sure you *could* do that but why?
[no name] 20-Sep-13 2:15am    
---1
This Access Query statemet will get the duplicate records.

SQL
SELECT ID,Name,Houseno
FROM Voters
WHERE (((Voters.[Name]) In (SELECT [Name] FROM [Voters] As Tmp GROUP BY [Name] HAVING Count(*)>1)))
ORDER BY Voters.[Name], Voters.[Houseno];


Also refer this
http://www.techonthenet.com/access/queries/find_dups2007.php[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900