Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / September 2007

Tip: Looking for answers? Try searching our database.

Find duplicate data in different column in a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
angeline - 12 Sep 2007 15:38 GMT
Hi

I have a customer database and would like to merge anyone who has the same
phone number or mobile number.

The table is
First name   Last name   Phone    Mobile   Email
John            Smith         123
Mary           Smith          456       123

So I want to find  these Mr&Mrs Smith because John phone number is the same
as Mary's mobile

Can you help
KARL DEWEY - 12 Sep 2007 16:14 GMT
Try these two queries --
    angeline_1  ---
SELECT angeline.Phone
FROM angeline INNER JOIN angeline AS angeline_1 ON angeline.Phone =
angeline_1.Mobile;

SELECT angeline.[First name], angeline.[Last name], angeline.Phone,
angeline.Mobile, angeline.Email
FROM angeline, angeline_1
WHERE (((angeline.Phone)=[angeline_1].[Phone])) OR
(((angeline.Mobile)=[angeline_1].[Phone]))
ORDER BY angeline_1.Phone;

Signature

KARL DEWEY
Build a little - Test a little

> Hi
>
[quoted text clipped - 10 lines]
>
> Can you help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.