473,765 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ 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 1882
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(aAddres s) 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
4612
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: tblItems ItemID ItemLabel
1
1394
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 well and i can see the records. If I reconsruct the query and put other records that I want shown, the query shows no records at all. I Have searched the web and this rescource and can not find a reference to this prob.
7
2743
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 the indicated data in cols C and D. It should then find any other ids with the exact same data for those columns.
6
3116
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 duplicates just not show them. Any ideas? I just want to show the records that have NO duplicates. SELECT , , , , , , , , , , , , , , , , , , , ,
4
2479
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 duplicates (on two fields) in another table. In Access 2003, the "Find duplicates wizard" will produce a query to list duplicates within the one table, but what about when they're in a different one? In other words, I want to select all records in table...
3
5564
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 1/3/2003, 762041, People Office 1/6/2003, 815643, Standard Services Inc 1/6/2003, 641502, Excellent Draft Solutions
2
4150
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 this programs one function which counts all duplicates by using a binary search tree implemented as an array (note: set the array size to 5,000,000 or larger). I think that it is better to use linked-list to implement binary search tree. However,...
5
8287
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 (don't ask me why) and I think that there are little chances of having it installed. Any wonder of how to overcome this situation without the aforementioned wizard? Thank you very much in advance Best regards from Barcelona
1
1573
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
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9946
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6646
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5272
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.