Duplicate Results in Count Queries

diggerydoom

New member
Local time
Today, 20:40
Joined
Mar 30, 2012
Messages
5
Hi all,

I have a table with a field 'FName'. I have run a query to count the number of each Name in this field. However, as well as having a blank field with 9129 results (which was expected) but another with 24 results that appears to be completely blank as well. There are another couple of incidences were results in 'FName' are appearing twice.

Any suggestions on how to identify what is causing this duplication?

Thanks,
Sam
 
As a start we are going to need to see the SQL for the query.

Brian
 
For the "blank" and "blank" - one is null and the other is a ZLS. You can change them all to null by creating an update query that selects the Null value and updates to "".

As for the other unexplained dups, there may be extra spaces or some hidden character. It will be very hard to identify these because you can't see them.
 
Hi all,

I have a table with a field 'FName'. I have run a query to count the number of each Name in this field. However, as well as having a blank field with 9129 results (which was expected) but another with 24 results that appears to be completely blank as well. There are another couple of incidences were results in 'FName' are appearing twice.

Any suggestions on how to identify what is causing this duplication?

Thanks,
Sam

using innerjoin or left join is the good ways, you could left join and in where clause let the fieldname is null
 
Hi ,

First of all make a group by of your Fname field to make unique. For the blank fields
U can try Trim function.
Trim (" Fname ") would return "" without any space.

If still the problem persists,please provide some sample data to check.
 

Users who are viewing this thread

Back
Top Bottom