473,473 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

find duplicates??

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 address if it occurs > 2 in a
given period. I need a report that gives the address and other fields.
I have tried using the find duplicates wizard, i need to run a query
twice, once to pick up the primary address and street and postcode and
one to pick up the secondary address etc. I can then append the
information together with the count(*) to a single table.

At this point it unravels! If I use a query to amalgamate the rest of
the required data, I the get the duplicates back. I have been scouring
the back posts to no avail. so far. I'm sure that there is probably a
perfectly simple solution. but I can't see it. any pointers would be
very much appreciated.
Tia.
Phil
Nov 13 '05 #1
2 1858
Ola Phil:

You are making a critical mistake by allowing more than one column of
any particular entity type in your base tables. If you have control
over the database structure you could simplify the problem if you
eliminated the 'Secondary Address' redundancy in the base table. To
normalize this structure you would create an 'aAddress' table linked
back to the address holder on the holder's primary key and containing a
flag to indicate what type of address each aAddress record contains.
This way you can have any number of addresses for an entity without
creating actual duplicates in the holder's base table, and you will
only need a single set of queries to extract information rather than
queries that need to be UNION'ed together.

However, relationally speaking, if you are joining this aAddress table
back to the Holder table, you will return one row in the result set for
each record in the address table, and any selected columns from the
singly-occuring Holder table will be duplicated in the output. That's
the beauty (and curse) of relational algebra.

To work around this limitation, you would normally create your GUI as a
Form(Holder)/SubForm(aAddress) view, by separately binding the aAddress
extract query to a subform displayed as a continuous form on the
Holder's form. This way the master (Holder) record displays singly,
while the user can scroll thru the linked addresses by navigating on
the subform.

If you can't control the database structure, see the online help for
UNION queries.

Kin Ron of Chi

Nov 13 '05 #2
Hi Phil,
Address parsing/matching is a real pain, I know I done 100's of
millions. I don't use a commercial parser so I can't recommend one, but
I'm sure I've seen some in my web travels. You could GOOGLE for
"Address parsing" or "Address matching"and you should turn something
up.

Maybe someone in this group uses one that they would recommend.
Sorry not much help
Tom

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
7
by: figital | last post by:
Given an ID (column B), I need to find which IDs have identical data. That is, given '200', I want the desired result to be: 100 The idea is that the system sees that id=200 has 5 records with...
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...
3
by: AccessHunter | last post by:
Please help with writing a VBA Code to find duplicates from the following acces table. Fields:- TranDate, Job Num, Agency Name Date is like this, 1/3/2003, 757702, People Office...
2
by: tuananh87vn | last post by:
Hi ! can anyone help me with the following topic: Find All Duplicates in a List of Numbers - Array implementation - -InitializeTree() -AddNode() -Add into...
5
by: limperger | last post by:
Hello everyone! Is out there any way to search for duplicate entries without using the "Find duplicates" option? In the Access 97 installed in my workplace, the Find duplicates option is disabled...
1
by: stateemk | last post by:
I have an Access project and need to find duplicates in table. How do I create a query to find the duplicates?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.