HelloI have 4 tables:Customer address, name, telephone number and email address:SELECT A.Contact_id, A.first_name, A.last_name, B.Contact_id, B.Address_1, B.Address_2, B.Address_3, B.zipcode C.Contact_id, C.Telephone, D.Contact_Id_D.Email, FROM Contact AS A, Addresses AS B, Telephones AS C, Emails as D, INNER JOIN A.contact_id = B.contact_idINNER JOIN c.contact_id = a.contact_id; INNER JOIN d.contact_id = c.contact_idI want to find out if I have duplications in name (surname) and address. However I also want to show details like the customer's telephone number in my report.So I have basically linked the 4 tables together with inner joins. Next step is trying to find where surname and address 1 and zip code are duplicates.Do you have any suggestions on how I can achieve this?Many thanks.
↧