473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

find duplicates query

trueadvantage
CAN U HELP ME?

Hi... I have 1 little but critical (for me) problem regarding access query.

Problem Details: -

I have one table which includes Employee Name and Employee ID

Table:-

EmpName EmpID
A 11
B 12
C 11
D 13
E 12
F 14
G 14
H 15
I 16

If you look at above table, u will come to know that some employee has got same emp numbers.

I want to build a query which will help me to find out those emp names who got same empid.

if anybody understand my problem so please send me query.

Thnnx in advance
Feb 8 '08 #1
2 1220
MMcCarthy
14,534 Expert Mod 8TB
I have split this post out into its own thead as it was hijacking the thread it was on.

Have you tried creating a Find Duplicates query?

If you try to find duplicate empID and include the empname field. It should give you the results you want.
Feb 8 '08 #2
aas4mis
97
CAN U HELP ME?

Hi... I have 1 little but critical (for me) problem regarding access query.

Problem Details: -

I have one table which includes Employee Name and Employee ID

Table:-

EmpName EmpID
A 11
B 12
C 11
D 13
E 12
F 14
G 14
H 15
I 16

If you look at above table, u will come to know that some employee has got same emp numbers.

I want to build a query which will help me to find out those emp names who got same empid.

if anybody understand my problem so please send me query.

Thnnx in advance
Try this:

Expand|Select|Wrap|Line Numbers
  1. SELECT EmpName, count(EmpID)
  2. FROM tblMyTable
  3. GROUP BY EmpName
  4. HAVING count(EmpID) > 1;
I'm still new to access myself but I believe this is what you're looking for.
Feb 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tom Mitchell | last post by:
All: I'm stumped on a query. How do I find duplicates in a table where one of the duplicates has values is a certain field and the other doesn't. For example, I have the following table: ...
1
by: Phil | last post by:
Hi. There is probably a very simple explanation for this. I am using the find duplicates wizard, I am asked for the fields that may contain duplcate info. So far so good at this point it functions...
1
by: Phil | last post by:
Hi Daryl. Thanks for you interest. I don't have the SQL, unlesss you mean the SQL behind the query? as to the "re-structuring" The first part of the wizard asks for the fields that may contain...
2
by: Phil | last post by:
Hi. I have a table containing primary address, secondary address, road,town, postcode, there are otherfields within the table requestid, round, day, etc. I want to find all instances of the...
3
by: Sim Zacks | last post by:
I am using 8.0 beta 1 on an RH 8 Linux server. I have a union query that I am converting from access (where it worked) and it is returning duplicates. The only difference between the two rows is...
16
by: tyrfboard | last post by:
I've been searching for awhile now on how to remove duplicates from a table within an Access db and have found plenty of articles on finding or deleting duplicates. All I want to do is remove them...
6
by: Parasyke | last post by:
I have a form that uses has a series of about 10 different queries to get the final VIEW query to populate my form. I wrote the below to find the duplicates, which works. I don't want to delete the...
4
by: Killer42 | last post by:
Hi all. Sorry, this is probably a really simple one but I'm having some difficulty with it, and don't have much time to devote to it right now. I need to find all the records which have...
1
by: aknoch | last post by:
My basic situation is this - I ONLY want duplicates, so the opposite of DISTINCT: I have two tables. Ordinarily, Table1ColumnA corresponds in a one to one ratio with Table2ColumnB through a...
9
by: iheartvba | last post by:
To put the below code simply, I have created a find duplicates query for a table using the Access query wizard. I have then tried to plug the Sql String (strSqlDupColl) copied from the Query Builder...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.