I have two tables:
Table ONE:
NAME: ACCOUNTS
FIELDS: 1
FIELD 1: SSN
Table TWO:
NAME: 1999ab
FIELDS: Many
I have a query that creates a new table for ALL Social Security numbers that match Table TWO.
Here is the problem. Within Table Two there are alot of duplicate Social Security Numbers. I only need one row of data in my new table that contains this information. So, How can I get my duplicate query to only match ONE time. This will give me a new table that has the SSN from TABLE ONE once with the corresponding NAMES and ADDRESSES from TABLE TWO.
Here is the Code I am using for my initial duplicate search:
SELECT ACCOUNTS.* INTO [ACCOUNTS NEW]
FROM ACCOUNTS INNER JOIN 1999ab ON ACCOUNTS.SSN0 = [1999ab].SSN
WHERE (((ACCOUNTS.SSN0)=([1999ab].[SSN])));
Who can help my ADD this to my code above?
Table ONE:
NAME: ACCOUNTS
FIELDS: 1
FIELD 1: SSN
Table TWO:
NAME: 1999ab
FIELDS: Many
I have a query that creates a new table for ALL Social Security numbers that match Table TWO.
Here is the problem. Within Table Two there are alot of duplicate Social Security Numbers. I only need one row of data in my new table that contains this information. So, How can I get my duplicate query to only match ONE time. This will give me a new table that has the SSN from TABLE ONE once with the corresponding NAMES and ADDRESSES from TABLE TWO.
Here is the Code I am using for my initial duplicate search:
SELECT ACCOUNTS.* INTO [ACCOUNTS NEW]
FROM ACCOUNTS INNER JOIN 1999ab ON ACCOUNTS.SSN0 = [1999ab].SSN
WHERE (((ACCOUNTS.SSN0)=([1999ab].[SSN])));
Who can help my ADD this to my code above?