SQL Query - Filtering Address
Hi Guys
I hope you can help share some light on my problem.
Basically, I have a MS Access table...ID, firstname, surname, Address1, Address2 etc
What I want to do is Select all from table but only show one record where more than one person lives at that address .. Eg only sending one envelope to the one household rather than sending two to the same address ....
I wouldnt have thought it was overly complex, however the combinations that I have been trying from the query builder havent worked ..
I can get a count of the number of records where the same address exists but I can't display a first name aswell.
Your suggestions will be greatly welcomed ... Thanks
Elmo
Elmo_loves_you
Junior Poster in Training
85 posts since Mar 2008
Reputation Points: 30
Solved Threads: 0
count items by the address lines or postcode or whatever you decide is the same name, then where records have a count > 2 you join them with a select on name where the address lines = the lines which had more than 2 records.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143